rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
zoneStrings = value;
zoneStrings = zones;
public void setZoneStrings (String[][] value) { zoneStrings = value; }
Class klass = Map.Entry.class;
Class<Map.Entry<K,V>> klass = (Class<Map.Entry<K,V>>) (Class) Map.Entry.class;
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { // @classpath-bugfix give an 'inconvertible types' at compilation //Class<Map.Entry<K,V>> klass = // (Class<Map.Entry<K,V>>) Map.Entry.class; Class klass = Map.Entry.class; // @classpath-bugfix-end entries = new CheckedEn...
Map.Entry<K,V> entry = new AbstractMap.BasicMapEntry<K, V>(k, v)
Map.Entry<K,V> entry = new AbstractMap.SimpleEntry<K, V>(k, v)
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) { Map.Entry<K,V> entry = new AbstractMap.BasicMapEntry<K, V>(k, v) { /** * Sets the value of the map entry to the supplied value. * An exception is always thrown, as the map is immutable. * * @param o The new value. ...
UnmodifiableCollection(Collection<T> c)
UnmodifiableCollection(Collection<? extends T> c)
UnmodifiableCollection(Collection<T> c) { this.c = c; if (c == null) throw new NullPointerException(); }
UnmodifiableIterator(Iterator<T> i)
UnmodifiableIterator(Iterator<? extends T> i)
UnmodifiableIterator(Iterator<T> i) { this.i = i; }
UnmodifiableList(List<T> l)
UnmodifiableList(List<? extends T> l)
UnmodifiableList(List<T> l) { super(l); list = l; }
list = l;
list = (List<T>) l;
UnmodifiableList(List<T> l) { super(l); list = l; }
UnmodifiableEntrySet(Set<T> s)
UnmodifiableEntrySet(Set<Map.Entry<K,V>> s)
UnmodifiableEntrySet(Set<T> s) { super(s); }
public Iterator<T> iterator()
public Iterator<Map.Entry<K,V>> iterator()
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
return new UnmodifiableIterator<T>(c.iterator())
return new UnmodifiableIterator<Map.Entry<K,V>>(c.iterator())
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public T next()
public Map.Entry<K,V> next()
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { public boolean equals(Object o) { return e.equals(o); } public Object getKey() { return e.getKey(); } public Object getValue() { return e.getValue(); } public int hashCode() { return e.hashCode(); } public Object setValue(Object value) ...
final Map.Entry<K,V> e = super.next(); return new UnmodifiableMapEntry<K,V>(e);
public Iterator<T> iterator() { return new UnmodifiableIterator<T>(c.iterator()) { /** * Obtains the next element from the underlying set of * map entries. * * @return the next element in the collection. * @throws NoSuchElementException if there are no more elements. */ pu...
public T next()
public Map.Entry<K,V> next()
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ...
final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { public boolean equals(Object o) { return e.equals(o); } public Object getKey() { return e.getKey(); } public Object getValue() { return e.getValue(); } public int hashCode() { return e.hashCode(); } public Object setValue(Object value) ...
final Map.Entry<K,V> e = super.next(); return new UnmodifiableMapEntry<K,V>(e);
public T next() { final Map.Entry e = (Map.Entry) super.next(); return (T) new Map.Entry() { /** * Returns <code>true</code> if the object, o, is also a map entry with an * identical key and value. * * @param o the object to compare. ...
UnmodifiableMap(Map<K, V> m)
UnmodifiableMap(Map<? extends K, ? extends V> m)
UnmodifiableMap(Map<K, V> m) { this.m = m; if (m == null) throw new NullPointerException(); }
this.m = m;
this.m = (Map<K,V>) m;
UnmodifiableMap(Map<K, V> m) { this.m = m; if (m == null) throw new NullPointerException(); }
entries = new UnmodifiableEntrySet<Map.Entry<K,V>>(m.entrySet());
entries = new UnmodifiableEntrySet<K,V>(m.entrySet());
public Set<Map.Entry<K, V>> entrySet() { if (entries == null) entries = new UnmodifiableEntrySet<Map.Entry<K,V>>(m.entrySet()); return entries; }
UnmodifiableRandomAccessList(List<T> l)
UnmodifiableRandomAccessList(List<? extends T> l)
UnmodifiableRandomAccessList(List<T> l) { super(l); }
UnmodifiableSet(Set<T> s)
UnmodifiableSet(Set<? extends T> s)
UnmodifiableSet(Set<T> s) { super(s); }
UnmodifiableSortedMap(SortedMap<K, V> sm)
UnmodifiableSortedMap(SortedMap<K, ? extends V> sm)
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
this.sm = sm;
this.sm = (SortedMap<K,V>) sm;
UnmodifiableSortedMap(SortedMap<K, V> sm) { super(sm); this.sm = sm; }
int binarySearch(List<? extends T> l, T key)
public static <T> int binarySearch(List<? extends Comparable<? super T>> l, T key)
int binarySearch(List<? extends T> l, T key) { return binarySearch(l, key, null); }
public static <T> void fill(List<T> l, T val)
public static <T> void fill(List<? super T> l, T val)
public static <T> void fill(List<T> l, T val) { ListIterator<T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
ListIterator<T> itr = l.listIterator();
ListIterator<? super T> itr = l.listIterator();
public static <T> void fill(List<T> l, T val) { ListIterator<T> itr = l.listIterator(); for (int i = l.size() - 1; i >= 0; --i) { itr.next(); itr.set(val); } }
public static <T> void reverse(List<T> l)
public static void reverse(List<?> l)
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
ListIterator<T> i1 = l.listIterator();
ListIterator i1 = l.listIterator();
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
ListIterator<T> i2 = l.listIterator(pos2);
ListIterator i2 = l.listIterator(pos2);
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
T o = i1.next(); i1.set(i2.previous()); i2.set(o);
Object o1 = i1.next(); Object o2 = i2.previous(); i1.set(o2); i2.set(o1);
public static <T> void reverse(List<T> l) { ListIterator<T> i1 = l.listIterator(); int pos1 = 1; int pos2 = l.size(); ListIterator<T> i2 = l.listIterator(pos2); while (pos1 < pos2) { T o = i1.next(); i1.set(i2.previous()); i2.set(o); ++pos1; --pos2; } }
public static <T> Collection<T> unmodifiableCollection(Collection<T> c)
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
public static <T> Collection<T> unmodifiableCollection(Collection<T> c) { return new UnmodifiableCollection<T>(c); }
public static <T> List<T> unmodifiableList(List<T> l)
public static <T> List<T> unmodifiableList(List<? extends T> l)
public static <T> List<T> unmodifiableList(List<T> l) { if (l instanceof RandomAccess) return new UnmodifiableRandomAccessList<T>(l); return new UnmodifiableList<T>(l); }
public static <K, V> Map<K, V> unmodifiableMap(Map<K, V> m)
public static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> m)
public static <K, V> Map<K, V> unmodifiableMap(Map<K, V> m) { return new UnmodifiableMap<K, V>(m); }
public static <T> Set<T> unmodifiableSet(Set<T> s)
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
public static <T> Set<T> unmodifiableSet(Set<T> s) { return new UnmodifiableSet<T>(s); }
public static <K, V> SortedMap<K, V> unmodifiableSortedMap(SortedMap<K, V> m)
public static <K, V> SortedMap<K, V> unmodifiableSortedMap(SortedMap<K, ? extends V> m)
public static <K, V> SortedMap<K, V> unmodifiableSortedMap(SortedMap<K, V> m) { return new UnmodifiableSortedMap<K, V>(m); }
if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return;
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // And create the new one by adding the attributes in <code>a</code>. if (a != null) charAttr.addAttribute(t, a.copyAttributes()); ...
super.end(t);
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); }
super.start(t, a);
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); }
charAttrStack.push(charAttr);
charAttrStack.push(charAttr.copyAttributes());
protected void pushCharacterStyle() { charAttrStack.push(charAttr); }
throws NotImplementedException
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) { // TODO: Implement this properly. }
firePropertyChange("visible", old, isVisible());
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
firePropertyChange("visible", old, isVisible());
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
invalidate();
public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); invalidate(); }
throws NotImplementedException
public Rectangle getCharacterBounds(int index) { // FIXME: Implement this correctly. return new Rectangle(); }
throws NotImplementedException
public int getIndexAtPoint(Point point) { // FIXME: Implement this correctly. return 0; }
return "";
return null;
public String getSelectedText() { // We return "" here since JLabel's text is not selectable. return ""; }
this(null, null, LEADING);
this("", null, LEADING);
public JLabel() { this(null, null, LEADING); }
return "JLabel";
return super.paramString();
protected String paramString() { return "JLabel"; }
throws NotImplementedException
protected void fireDragGestureRecognized(int dragAction, Point p) { throw new Error("not implemented"); }
throws NotImplementedException
public void resetRecognizer() { throw new Error("not implemented"); }
ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight ();
boolean left_to_right = target.getComponentOrientation().isLeftToRight();
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
Dimension c = calcCompSize(center, PREF);
if (my_north != null) {
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
Dimension e = calcCompSize(my_east, PREF); Dimension w = calcCompSize(my_west, PREF); int targetWidth = target.getWidth(); int targetHeight = target.getHeight();
my_south.setBounds(left, bottom - s.height, right - left, s.height); bottom -= s.height + vgap; }
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
if (my_east != null) { Dimension e = calcCompSize(my_east, PREF); my_east.setBounds(right - e.width, top, e.width, bottom - top); right -= e.width + hgap; }
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
int x1 = i.left; int x2 = x1 + w.width + (w.width == 0 ? 0 : hgap); int x3; if (targetWidth <= i.right + e.width) x3 = x2 + w.width + (w.width == 0 ? 0 : hgap); else x3 = targetWidth - i.right - e.width; int ww = targetWidth - i.right - i.left;
if (my_west != null) { Dimension w = calcCompSize(my_west, PREF); my_west.setBounds(left, top, w.width, bottom - top); left += w.width + hgap; }
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
int y1 = i.top; int y2 = y1 + n.height + (n.height == 0 ? 0 : vgap); int midh = Math.max(e.height, Math.max(w.height, c.height)); int y3; if (targetHeight <= i.bottom + s.height) y3 = y2 + midh + vgap; else y3 = targetHeight - i.bottom - s.height; int hh = y3-y2-(s.height == 0 ? 0 : vgap); setBounds(center, x2, y2, x3...
if (center != null) center.setBounds(left, top, right - left, bottom - top);
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
else { position(limit()); limit(capacity()); }
public ShortBuffer compact () { if (position () > 0) { int count = limit () - position (); bb.shiftDown(offset, offset + 2 * position(), 2 * count); position (count); limit (capacity ()); } return this; }
if (event == null || !(event instanceof MouseEvent))
if (event == null || !(event instanceof MouseEvent) || (((MouseEvent) event).getClickCount() >= getClickCountToStart()))
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
return null;
return enumValueTable;
protected EnumSyntax[] getEnumValueTable() { // FIXME return null; }
return null;
return stringTable;
protected String[] getStringTable() { // FIXME return null; }
return (null);
return null;
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
return (pbis);
return pbis;
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
return 0; }
URI uri = (URI) obj; if (scheme == null && uri.getScheme() != null) return -1; if (scheme != null) { int sCompare = scheme.compareToIgnoreCase(uri.getScheme()); if (sCompare != 0) return sCompare; } boolean opaqueThis = isOpaque(); boolean opaqueObj = uri.isOpaque(); if (opaqueThis && !opaqueObj) return 1; if (!opaqueT...
public int compareTo(Object obj) throws ClassCastException { return 0; }
if (!(obj instanceof URI)) return false; URI uriObj = (URI) obj; if (scheme == null) { if (uriObj.getScheme() != null) return false; } else if (!(scheme.equalsIgnoreCase(uriObj.getScheme()))) return false; if (rawFragment == null) { if (uriObj.getRawFragment() != null) return false; } else if (!(rawFragment.equalsIgnor...
public boolean equals(Object obj) { return false; }
return matched.length() == 0 ? null : matched;
return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched;
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? null : matched; }
return 0;
return (getScheme() == null ? 0 : 13 * getScheme().hashCode()) + 17 * getRawSchemeSpecificPart().hashCode() + (getRawFragment() == null ? 0 : 21 + getRawFragment().hashCode());
public int hashCode() { return 0; }
return null; }
if (isOpaque() || path.indexOf("/./") == -1 && path.indexOf("/../") == -1) return this; try { return new URI(scheme, authority, normalizePath(path), query, fragment); } catch (URISyntaxException e) { throw (Error) new InternalError("Normalized URI variant could not "+ "be constructed").initCause(e); } }
public URI normalize() { return null; }
return null;
if (rawAuthority != null) { Matcher matcher = AUTHORITY_PATTERN.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_HOST_GROUP); String portStr = getURIGroup(matcher, AUTHORITY_PORT_GROUP); if (portStr != null) try { p...
public URI parseServerAuthority() throws URISyntaxException { return null; }
Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str);
Matcher matcher = URI_PATTERN.matcher(str);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
throw new URISyntaxException(str, "doesn't match URI regular expression"); if (rawAuthority != null) { pattern = Pattern.compile(AUTHORITY_REGEXP); matcher = pattern.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_H...
throw new URISyntaxException(str, "doesn't match URI regular expression"); parseServerAuthority();
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
return str;
return quote(str, RFC3986_SSP);
private static String quote(String str) { // FIXME: unimplemented. return str; }
return quote(str, RFC2396_REG_NAME);
return quote(str, RFC3986_REG_NAME);
private static String quoteAuthority(String str) { // Technically, we should be using RFC2396_AUTHORITY, but // it contains no additional characters. return quote(str, RFC2396_REG_NAME); }
return str;
return quote(str, RFC3986_HOST);
private static String quoteHost(String str) { // FIXME: unimplemented. return str; }
return quote(str, RFC2396_PATH_SEGMENTS);
return quote(str, RFC3986_PATH_SEGMENTS);
private static String quotePath(String str) { // Technically, we should be using RFC2396_PATH, but // it contains no additional characters. return quote(str, RFC2396_PATH_SEGMENTS); }
return str;
return quote(str, RFC3986_USERINFO);
private static String quoteUserInfo(String str) { // FIXME: unimplemented. return str; }
return null;
if (isOpaque() || uri.isOpaque()) return uri; if (scheme == null && uri.getScheme() != null) return uri; if (scheme != null && !(scheme.equals(uri.getScheme()))) return uri; if (rawAuthority == null && uri.getRawAuthority() != null) return uri; if (rawAuthority != null && !(rawAuthority.equals(uri.getRawAuthority()))) ...
public URI relativize(URI uri) { return null; }
path = basepath.toString();
path = normalizePath(basepath.toString());
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
return null;
throw (Error) new InternalError("Resolved URI variant could not "+ "be constructed").initCause(e);
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
return ""; }
String strRep = toString(); boolean inNonAsciiBlock = false; StringBuffer buffer = new StringBuffer(); StringBuffer encBuffer = null; for (int i = 0; i < strRep.length(); i++) { char c = strRep.charAt(i); if (c <= 127) { if (inNonAsciiBlock) { buffer.append(escapeCharacters(encBuffer.toString())); inNonAsciiBlock = fal...
public String toASCIIString() { return ""; }
return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment());
return (scheme == null ? "" : scheme + ":") + rawSchemeSpecificPart + (rawFragment == null ? "" : "#" + rawFragment);
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment()); }
if (c > 127) throw new URISyntaxException(str, "Invalid character");
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
String hex = "0123456789ABCDEF"; int hi = hex.indexOf(str.charAt(++i)); int lo = hex.indexOf(str.charAt(++i));
int hi = Character.digit(str.charAt(++i), 16); int lo = Character.digit(str.charAt(++i), 16);
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
Restricted_ORB.Singleton.create_enum_tc(id(), "CompletionStatus",
OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus",
public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = Restricted_ORB.Singleton.create_enum_tc(id(), "CompletionStatus", members...
HashSet actionSet = new HashSet();
HashMap actions = new HashMap();
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
actionSet.add(list1[i]);
{ Action a = list1[i]; Object name = a.getValue(Action.NAME); actions.put(name != null ? name : "", a); }
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Action[]) list.toArray(new Action[actionSet.size()]);
{ Action a = list2[i]; Object name = a.getValue(Action.NAME); actions.put(name != null ? name : "", a); } Action[] augmented = new Action[actions.size()]; int i = 0; for (Iterator it = actions.values().iterator(); it.hasNext(); i++) augmented[i] = (Action) it.next(); return augmented;
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent();
JTextComponent target = null; if (event != null) { Object source = event.getSource(); if (source instanceof JTextComponent) target = (JTextComponent) source; } if (target == null) target = getFocusedComponent(); return target;
protected final JTextComponent getTextComponent(ActionEvent event) { if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent(); }
}
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities...
checkForUnderflow();
if (pos >= limit) throw new BufferUnderflowException();
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
char result = backing_buffer [position ()]; position (position () + 1); return result;
return backing_buffer [(pos++) + array_offset];
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
checkIfReadOnly();
if (readOnly) throw new ReadOnlyBufferException(); if (pos >= limit) throw new BufferOverflowException();
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
backing_buffer [position ()] = value; position (position () + 1);
backing_buffer [(pos++) + array_offset] = value;
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
public DataBuffer createDataBuffer() { int size = scanlineStride * height;
public DataBuffer createDataBuffer() { int size; size = scanlineStride * (height - 1) + width;
public DataBuffer createDataBuffer() { // Important: use scanlineStride here, not width! int size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size); }
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too short, it must ...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride*y + x; if (iArray == null) iArray = new int[numBands*w*h];
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
for (int b = 0; b < numBands; b++) {
for (int b=0; b<numBands; b++)
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
}
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match data "...
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { Object pixelData; switch (getTransferType()) { case DataBuffer.TYPE_BYTE: pixelData = ((DataBufferByte) data).getData(); break; case DataBuffer.TYPE_USHORT: pixelData = ((DataBufferUShort) data).getData(); break; case DataBuffer.TYP...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match d...
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv; }
public CommandEnvironment(String commandPatch, String[] args) { command = commandPatch; if (args != null) options = args; else options = NO_ARGS; }
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv;}
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false);
public boolean equals(Object obj) { if (obj instanceof CommandEnvironment) { CommandEnvironment that = (CommandEnvironment) obj; if (command == null || that.command == null) { if (command != that.command) return false; } else { if (! this.command.equals(that.command)) return false;
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
int len = this.argv.length; if (len != that.argv.length) { return (false);
return Arrays.equals(options, that.options); } else return false;
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
for (int i = 0; i < len; i++) { if (!this.argv[i].equals(that.argv[i])) { return (false); } } return (true); }
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public String[] getCommandOptions() { return (argv); }
public String[] getCommandOptions() { return options; }
public String[] getCommandOptions() { return (argv);}