Codota Logo
AbstractObjectList.size
Code IndexAdd Codota to your IDE (free)

How to use
size
method
in
org.jfree.util.AbstractObjectList

Best Java code snippets using org.jfree.util.AbstractObjectList.size (Showing top 6 results out of 315)

  • Common ways to obtain AbstractObjectList
private void myMethod () {
AbstractObjectList a =
  • Codota IconObject object;(AbstractObjectList) object.clone()
  • Smart code suggestions by Codota
}
origin: jfree/jcommon

/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(final ObjectOutputStream stream) 
  throws IOException {
  stream.defaultWriteObject();
  final int count = size();
  stream.writeInt(count);
  for (int i = 0; i < count; i++) {
    final Object object = get(i);
    if (object != null && object instanceof Serializable) {
      stream.writeInt(i);
      stream.writeObject(object);
    }
    else {
      stream.writeInt(-1);
    }
  }
}
 
origin: org.jfree/jcommon

/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(final ObjectOutputStream stream) 
  throws IOException {
  stream.defaultWriteObject();
  final int count = size();
  stream.writeInt(count);
  for (int i = 0; i < count; i++) {
    final Object object = get(i);
    if (object != null && object instanceof Serializable) {
      stream.writeInt(i);
      stream.writeObject(object);
    }
    else {
      stream.writeInt(-1);
    }
  }
}
 
origin: org.jfree/com.springsource.org.jfree

/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(final ObjectOutputStream stream) 
  throws IOException {
  stream.defaultWriteObject();
  final int count = size();
  stream.writeInt(count);
  for (int i = 0; i < count; i++) {
    final Object object = get(i);
    if (object != null && object instanceof Serializable) {
      stream.writeInt(i);
      stream.writeObject(object);
    }
    else {
      stream.writeInt(-1);
    }
  }
}
 
origin: org.jfree/jcommon

/**
 * Tests this list for equality with another object.
 *
 * @param obj  the object to test.
 * 
 * @return A boolean.
 */
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof AbstractObjectList)) {
    return false;
  }
  final AbstractObjectList other = (AbstractObjectList) obj;
  final int listSize = size();
  for (int i = 0; i < listSize; i++) {
    if (!ObjectUtilities.equal(get(i), other.get(i))) {
      return false;
    }
  }
  return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Tests this list for equality with another object.
 *
 * @param obj  the object to test.
 * 
 * @return A boolean.
 */
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof AbstractObjectList)) {
    return false;
  }
  final AbstractObjectList other = (AbstractObjectList) obj;
  final int listSize = size();
  for (int i = 0; i < listSize; i++) {
    if (!ObjectUtilities.equal(get(i), other.get(i))) {
      return false;
    }
  }
  return true;
}
origin: jfree/jcommon

/**
 * Tests this list for equality with another object.
 *
 * @param obj  the object to test.
 * 
 * @return A boolean.
 */
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof AbstractObjectList)) {
    return false;
  }
  final AbstractObjectList other = (AbstractObjectList) obj;
  final int listSize = size();
  for (int i = 0; i < listSize; i++) {
    if (!ObjectUtilities.equal(get(i), other.get(i))) {
      return false;
    }
  }
  return true;
}
org.jfree.utilAbstractObjectListsize

Javadoc

The current list size.

Popular methods of AbstractObjectList

  • clone
    Clones the list of objects. The objects in the list are not cloned, so this is method makes a 'shall
  • equals
    Tests this list for equality with another object.
  • get
    Returns the object at the specified index, if there is one, ornull.
  • hashCode
    Returns a hash code value for the object.
  • indexOf
    Returns the index of the specified object, or -1 if the object is not in the list.
  • set
    Sets an object reference (overwriting any existing object).

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now