rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return null; | return "RadioButtonMenuItem"; | protected String getPropertyPrefix() { return null; } |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobPrioritySupported.class; } |
public final String getName() | public String getName() | public final String getName() { return "job-priority-supported"; } |
public static Currency getInstance(String currencyCode) | public static Currency getInstance(Locale locale) | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. | /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
if (currencyCode == null) | Currency newCurrency; String country = locale.getCountry(); if (locale == null || country == null) | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
throw new NullPointerException("The supplied currency code is null."); | throw new NullPointerException("The locale or its country is null."); | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
Currency newCurrency = (Currency) cache.get(currencyCode); if (newCurrency == null) | String code = (String) countryMap.get(country); if (code == null) | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
allLocales = Locale.getAvailableLocales(); for (int i = 0;i < allLocales.length; i++) { try { Currency testCurrency = getInstance (allLocales[i]); if (testCurrency != null && testCurrency.getCurrencyCode().equals(currencyCode)) { return testCurrency; | newCurrency = new Currency(locale); code = newCurrency.getCurrencyCode(); if (code == null) { return null; } else { countryMap.put(country, code); cache.put(code, newCurrency); } | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
} catch (IllegalArgumentException exception) { } } throw new IllegalArgumentException("The currency code, " + currencyCode + ", is not supported."); } | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... | |
return newCurrency; | newCurrency = (Currency) cache.get(code); | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... |
return newCurrency; | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointer... | |
log.debug("Wrong Thread", new Exception("Stacktracr")); | log.debug("Wrong Thread", new Exception("Stacktrace")); | private void checkThread() { if (!SwingUtilities.isEventDispatchThread()) { log.debug("Wrong Thread", new Exception("Stacktracr")); } } |
public void add(Point p) { add((double) p.x, (double) p.y); | public void add(int x, int y) { add((double) x, (double) y); | public void add(Point p) { add((double) p.x, (double) p.y); } |
if (root == null) continue; | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | |
{ | public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; } resetContext(); } | |
} | public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; } resetContext(); } | |
public X86Core(final Map labels) { super(labels); | public X86Core(final Map labels, final Map constants) { super(labels, constants); | public X86Core(final Map labels) { super(labels); } |
case DataBuffer.TYPE_FLOAT: DataBufferFloat inFloat = (DataBufferFloat) data; float[] outFloat = (float[]) obj; if (outFloat == null) outFloat = new float[numBands]; for (int b=0; b<numBands; b++) { int dOffset = totalBandDataOffsets[b]; outFloat[b] = inFloat.getData(bankIndices[b])[dOffset]; } return outFloat; case ... | public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th... | |
public static DataBuffer createBuffer(int dataType, int size, int numBanks) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte(size, numBanks); case DataBuffer.TYPE_USHORT : return new DataBufferUShort(size, numBanks); case DataBuffer.TYPE_INT : return new DataBufferInt(size, numBanks); default... | public static DataBuffer createBuffer(int dataType, Object data, int size) { if (data == null) return createBuffer(dataType, size, 1); return createBufferFromData(dataType, data, size); | public static DataBuffer createBuffer(int dataType, int size, int numBanks) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte(size, numBanks); case DataBuffer.TYPE_USHORT : return new DataBufferUShort(size, numBanks); case DataBuffer.TYPE_INT : return new DataBufferInt(size, n... |
public byte[] getData(int bank) | public byte[] getData() | public byte[] getData(int bank) { return bankData[bank]; } |
return bankData[bank]; | return data; | public byte[] getData(int bank) { return bankData[bank]; } |
public int[] getData(int bank) { return bankData[bank]; | public int[] getData() { return data; | public int[] getData(int bank) { return bankData[bank]; } |
if (buffer instanceof DataBufferFloat) return ((DataBufferFloat) buffer).getData(); if (buffer instanceof DataBufferDouble) return ((DataBufferDouble) buffer).getData(); | public static Object getData(DataBuffer buffer) { if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData(); if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData(); if (buffer instanceof DataBufferInt) return ((DataBufferInt) buffer).getData(); throw new C... | |
case DataBuffer.TYPE_USHORT : | case DataBuffer.TYPE_SHORT: return new DataBufferShort((short[]) data, size); case DataBuffer.TYPE_USHORT: | public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new Dat... |
default : | case DataBuffer.TYPE_FLOAT: return new DataBufferFloat((float[]) data, size); case DataBuffer.TYPE_DOUBLE: return new DataBufferDouble((double[]) data, size); default: | public static DataBuffer createBufferFromData(int dataType, Object data, int size) { switch (dataType) { case DataBuffer.TYPE_BYTE : return new DataBufferByte((byte[]) data, size); case DataBuffer.TYPE_USHORT : return new DataBufferUShort((short[]) data, size); case DataBuffer.TYPE_INT : return new Dat... |
super.setUI((MenuItemUI) UIManager.getUI(this)); invalidate(); | setUI((MenuItemUI) UIManager.getUI(this)); | public void updateUI() { super.setUI((MenuItemUI) UIManager.getUI(this)); invalidate(); } |
if ((m == sel) && (b == true)) | if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) | public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin... |
System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); | ButtonModel old = sel; sel = m; | public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin... |
AbstractButton but = FindButton(sel); if (but != null) { System.out.println("REPAINT-REQUEST: " + but.text); but.repaint(); | if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); | public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin... |
} else System.out.println("NO SELECTION YET"); sel = m; | else if (! b && sel == m) m.setSelected(true); | public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on same item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(! b); AbstractButton but = Fin... |
String name = new String(buffer); | String name; try { name = new String(buffer, "UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipExcepti... |
super.configurePropertiesFromAction(a); | protected void configurePropertiesFromAction(Action a) { //Factory method which sets the AbstractButton's properties according to values from the Action instance. } | |
} | } else cachedDecoder.reset(); | public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... |
} | } else cachedEncoder.reset(); | public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... |
public abstract int get (); | public IntBuffer get (int[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; } | public abstract int get (); |
if (!closed) | protected void finalize() throws Throwable { close(); } | |
throw new RuntimeException(e); | public void mark() { try { markStack.push(new Long(getStreamPosition())); } catch (IOException e) { // Ignored. } } | |
if (bitOffset != 0) | if (newOffset != 0) | public int readBit() throws IOException { checkClosed(); // Calc new bit offset here, readByte resets it. int newOffset = (bitOffset + 1) & 0x7; byte data = readByte(); if (bitOffset != 0) { seek(getStreamPosition() - 1); data = (byte) (data >> (8 - newOffset)); } bitOffset = newOf... |
if (numBits == 0) return 0L; | public long readBits(int numBits) throws IOException { checkClosed(); if (numBits < 0 || numBits > 64) throw new IllegalArgumentException(); if (numBits == 0) return 0L; long bits = 0L; for (int i = 0; i < numBits; i++) { bits <<= 1; bits |= readBit(); } return bits; } | |
checkClosed(); | public byte readByte() throws IOException { int data = read(); if (data == -1) throw new EOFException(); return (byte) data; } | |
int result = read(buffer.getData(), buffer.getOffset(), len); if (result == -1 || result < len) throw new EOFException(); | readFullyPrivate(buffer.getData(), buffer.getOffset(), len); | public void readBytes(IIOByteBuffer buffer, int len) throws IOException { int result = read(buffer.getData(), buffer.getOffset(), len); if (result == -1 || result < len) throw new EOFException(); buffer.setLength(len); } |
return (double) readLong(); | return Double.longBitsToDouble(readLong()); | public double readDouble() throws IOException { return (double) readLong(); } |
return (float) readInt(); | return Float.intBitsToFloat(readInt()); | public float readFloat() throws IOException { return (float) readInt(); } |
int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); | readFullyPrivate(buffer, 0, 4); | public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ... |
{ return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } | return (int) (((int) (buffer[0] & 0xff) << 0) | ((int) (buffer[1] & 0xff) << 8) | ((int) (buffer[2] & 0xff) << 16) | ((int) (buffer[3] & 0xff) << 24)); | public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ... |
return ((buffer[4] << 24) + (buffer[3] << 16) + (buffer[2] << 8) + (buffer[1] & 0xff)); | return (int) (((int) (buffer[0] & 0xff) << 24) + ((int) (buffer[1] & 0xff) << 16) + ((int) (buffer[2] & 0xff) << 8) + ((int) (buffer[3] & 0xff) << 0)); | public int readInt() throws IOException { int result = read(buffer, 0, 4); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (buffer[1] << 8) + (buffer[2] << 16) + (buffer[3] << 24)); } return ((buffer[4] << ... |
while (!eol && (c = read()) != -1) | c = read(); if (c == -1) return null; while (!eol) | public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n... |
if (read() != '\n') | c = read(); if (c == -1 || c == '\n') eol = true; else { | public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n... |
break; | continue; | public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n... |
if (c == -1 && buffer.length() == 0) return null; | public String readLine() throws IOException { checkClosed(); int c = -1; boolean eol = false; StringBuffer buffer = new StringBuffer(); while (!eol && (c = read()) != -1) { switch(c) { case '\r': // Consume following \n' long oldPosition = getStreamPosition(); if (read() != '\n... | |
int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); | readFullyPrivate(buffer, 0, 8); | public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ... |
{ return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << 16) + (((buffer[3] & 0xffL)) << 24) + (((buffer[4] & 0xffL)) << 32) + (((buffer[5] & 0xffL)) << 40) + (((buffer[6] & 0xffL)) << 48) + (((long) buffer[7]) << 56)); } | return (long) (((long) (buffer[0] & 0xff) << 0) | ((long) (buffer[1] & 0xff) << 8) | ((long) (buffer[2] & 0xff) << 16) | ((long) (buffer[3] & 0xff) << 24) | ((long) (buffer[4] & 0xff) << 32) | ((long) (buffer[5] & 0xff) << 40) | ((long) (buffer[6] & 0xff) << 48) | ((long) (buffer[7] & 0xff) << 56)); | public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ... |
return ((((long) buffer[7]) << 56) + ((buffer[6] & 0xffL) << 48) + ((buffer[5] & 0xffL) << 40) + ((buffer[4] & 0xffL) << 32) + ((buffer[3] & 0xffL) << 24) + ((buffer[2] & 0xff) << 16) + ((buffer[1] & 0xff) << 8) + (buffer[0] & 0xff)); | return (long) (((long) (buffer[0] & 0xff) << 56) | ((long) (buffer[1] & 0xff) << 48) | ((long) (buffer[2] & 0xff) << 40) | ((long) (buffer[3] & 0xff) << 32) | ((long) (buffer[4] & 0xff) << 24) | ((long) (buffer[5] & 0xff) << 16) | ((long) (buffer[6] & 0xff) << 8) | ((long) (buffer[7] & 0xff) << 0)); | public long readLong() throws IOException { int result = read(buffer, 0, 8); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return ((buffer[0] & 0xff) + (((buffer[1] & 0xff)) << 8) + (((buffer[2] & 0xff)) << ... |
int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); | readFullyPrivate(buffer, 0, 2); | public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ... |
{ return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } | return (short) (((short) (buffer[0] & 0xff) << 0) | ((short) (buffer[1] & 0xff) << 8)); | public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ... |
return (short) ((buffer[0] << 8) + (buffer[1] & 0xff)); | return (short) (((short) (buffer[0] & 0xff) << 8) | ((short) (buffer[1] & 0xff) << 0)); | public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] ... |
return readByte() & 0xff; | return (int) readByte() & 0xff; | public int readUnsignedByte() throws IOException { return readByte() & 0xff; } |
return readInt() & 0xffffffff; | return (long) readInt() & 0xffffffffL; | public long readUnsignedInt() throws IOException { return readInt() & 0xffffffff; } |
return readShort() & 0xffff; | return (int) readShort() & 0xffff; | public int readUnsignedShort() throws IOException { return readShort() & 0xffff; } |
throw new IllegalArgumentException(); | throw new IllegalArgumentException("bitOffset not between 0 and 7 inclusive"); | public void setBitOffset (int bitOffset) throws IOException { checkClosed(); if (bitOffset < 0 || bitOffset > 7) throw new IllegalArgumentException(); this.bitOffset = bitOffset; } |
Object value) { | Object value) throws PrivilegedActionPragma { | private static void setStaticField(Class<?> clazz, String fieldName, Object value) { final VmStaticField f = (VmStaticField) clazz.getVmClass().getField( fieldName); final Vm vm = Vm.getVm(); final Object staticsTable; final Offset offset; if (f.isShared(... |
return new primitiveArrayTypeCode(TCKind.tk_octet); | return new ArrayTypeCode(TCKind.tk_octet); | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_octet); } |
public IllegalThreadStateException() { super(); } | public IllegalThreadStateException() { } | public IllegalThreadStateException() { super(); } |
return new primitiveArrayTypeCode(TCKind.tk_double); | return new ArrayTypeCode(TCKind.tk_double); | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_double); } |
throws NotImplementedException | protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) { ... | |
if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).nativeQueueEmpty()) | if (peekEvent() == null) | synchronized boolean isShutdown () { if (shutdown) return true; // This is the exact self-shutdown condition specified in J2SE: // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).na... |
setName("AWT-EventQueue-" + dispatchThreadNum++); | setName("AWT-EventQueue-" + ++dispatchThreadNum); | EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + dispatchThreadNum++); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); } |
throws NotImplementedException | public boolean getDragEnabled() { // FIXME: Implement return false; } | |
throws NotImplementedException | public void setDragEnabled(boolean b) { // FIXME: Implement } | |
throws IOException | throws IOException, NotImplementedException | public int read() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); } |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobMediaSheets.class; } |
public final String getName() | public String getName() | public final String getName() { return "job-media-sheets"; } |
if (maximum != newMaximum) | if (maximum != null ? !maximum.equals(newMaximum) : newMaximum != null) | public void setMaximum(Comparable newMaximum) { if (maximum != newMaximum) { maximum = newMaximum; fireStateChanged(); } } |
if (minimum != newMinimum) | if (minimum != null ? !minimum.equals(newMinimum) : newMinimum != null) | public void setMinimum(Comparable newMinimum) { if (minimum != newMinimum) { minimum = newMinimum; fireStateChanged(); } } |
if (stepSize != newStepSize) | if (!stepSize.equals(newStepSize)) | public void setStepSize(Number newStepSize) { if (newStepSize == null) throw new IllegalArgumentException(); if (stepSize != newStepSize) { stepSize = newStepSize; fireStateChanged(); } } |
} | public void setValue(Object value) { if (! (value instanceof Number)) throw new IllegalArgumentException("value must be a Number"); this.value = (Number) value; fireStateChanged(); } | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PageRanges.class; } |
public final String getName() | public String getName() | public final String getName() { return "page-ranges"; } |
pack(); | 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() { ... | |
public void unregister_value_factory(String id) | public void unregister_value_factory(String repository_id) | public void unregister_value_factory(String id) { throw new NO_IMPLEMENT(); } |
firePropertyChange("horizontalAlignment", oldAlign, newAlign); | public void setHorizontalAlignment(int newAlign) { int oldAlign = align; align = newAlign; invalidate(); repaint(); firePropertyChange("horizontalAlignment", oldAlign, newAlign); } | |
getMaxAscent() { return(getAscent()); } | public int getMaxAscent() { return getAscent(); } | getMaxAscent(){ return(getAscent());} |
getMaxDescent() { return getMaxDecent (); } | public int getMaxDescent() { return getMaxDecent(); } | getMaxDescent(){ return getMaxDecent ();} |
if (maximum != null && minimum.compareTo(o) < 0) | if (maximum != null && maximum.compareTo(o) < 0) | public Object stringToValue(String string) throws ParseException { if (format != null) { Object o = format.parseObject(string); // If a value class has been set, call super in order to get // the class right. That is what the JDK API docs suggest, so we do // it that way. ... |
return doc.getText(getSelectionStart(), getSelectionEnd()); | return doc.getText(start, offset); | public String getSelectedText() { try { return doc.getText(getSelectionStart(), getSelectionEnd()); } catch (BadLocationException e) { // This should never happen. return null; } } |
public void beginLayout() { | public final void beginLayout() { | public void beginLayout() { // TODO Auto-generated method stub } |
jComponent.doLayout(); | public void beginValidate() { // TODO Auto-generated method stub } | |
public void endLayout() { } | public final void endLayout() { } | public void endLayout() { // TODO Auto-generated method stub } |
public Insets insets() { | public final Insets insets() { | public Insets insets() { return getInsets(); } |
throws NotImplementedException | public List getFlavorsForNative (String nat) { throw new Error ("Not implemented"); } | |
throws NotImplementedException | public List getNativesForFlavor (DataFlavor flav) { throw new Error ("Not implemented"); } | |
public abstract Map getFlavorsForNatives (String[] natives); | Map getFlavorsForNatives (String[] natives); | public abstract Map getFlavorsForNatives (String[] natives); |
public abstract Map getNativesForFlavors (DataFlavor[] flavors); | Map getNativesForFlavors (DataFlavor[] flavors); | public abstract Map getNativesForFlavors (DataFlavor[] flavors); |
public long getLastModified() { return 0; | public long getLastModified() throws IOException { return NTFSUTIL.filetimeToMillis(getFileRecord().getFileNameAttribute().getModificationTime()); | public long getLastModified() { // TODO Auto-generated method stub return 0; } |
*/ XMLParser ret = new XMLParser(reader, null, validating, namespaceAware, coalescing, replacingEntityReferences, externalEntities, supportDTD, baseAware, stringInterning, reporter, resolver); if (xIncludeAware) return new XIncludeFilter(ret, null, namespaceAware, validating, replacingEntityReferences); return ret; | public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, replacingE... | |
if (name.equals("gnu.xml.stream.stringInterning")) return stringInterning ? Boolean.TRUE : Boolean.FALSE; if (name.equals("gnu.xml.stream.baseAware")) return baseAware ? Boolean.TRUE : Boolean.FALSE; if (name.equals("gnu.xml.stream.xIncludeAware")) return xIncludeAware ? Boolean.TRUE : Boolean.FALSE; | public Object getProperty(String name) throws IllegalArgumentException { if (name.equals(IS_NAMESPACE_AWARE)) return namespaceAware ? Boolean.TRUE : Boolean.FALSE; if (name.equals(IS_VALIDATING)) return validating ? Boolean.TRUE : Boolean.FALSE; if (name.equals(IS_COALESCING)) return coale... | |
name.equals(ALLOCATOR); | name.equals(ALLOCATOR) || name.equals("gnu.xml.stream.stringInterning") || name.equals("gnu.xml.stream.baseAware") || name.equals("gnu.xml.stream.xIncludeAware"); | public boolean isPropertySupported(String name) { return name.equals(IS_NAMESPACE_AWARE) || name.equals(IS_VALIDATING) || name.equals(IS_COALESCING) || name.equals(IS_REPLACING_ENTITY_REFERENCES) || name.equals(IS_SUPPORTING_EXTERNAL_ENTITIES) || name.equals(SUPPORT_DTD) || name.equa... |
else if (name.equals("gnu.xml.stream.stringInterning")) stringInterning = ((Boolean) value).booleanValue(); else if (name.equals("gnu.xml.stream.baseAware")) baseAware = ((Boolean) value).booleanValue(); else if (name.equals("gnu.xml.stream.xIncludeAware")) xIncludeAware = ((Boolean) value).booleanValue(); | public void setProperty(String name, Object value) throws IllegalArgumentException { if (name.equals(IS_NAMESPACE_AWARE)) namespaceAware = ((Boolean) value).booleanValue(); else if (name.equals(IS_VALIDATING)) validating = ((Boolean) value).booleanValue(); else if (name.equals(IS_COALESCING)) ... | |
public XMLParser(Reader reader, String systemId, | public XMLParser(InputStream in, String systemId, | public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.