congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractObjectList
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractObjectList
in
org.jfree.util

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

origin: org.jfree/jcommon

/**
 * Returns an independent copy of the list.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if an item in the list does not
 *         support cloning.
 */
public Object clone() throws CloneNotSupportedException {
  return super.clone();
}
origin: org.jfree/jcommon

/**
 * Tests the list for equality with another object (typically also a list).
 *
 * @param o  the other object.
 *
 * @return A boolean.
 */
public boolean equals(final Object o) {
  if (o instanceof BooleanList) {
    return super.equals(o);
  }
  return false;
}
origin: org.jfree/com.springsource.org.jfree

/**          
 * Returns the object at the specified index, if there is one, or <code>null</code>.         
 *   
 * @param index  the object index.   
 *   
 * @return The object or <code>null</code>.          
 */          
public Object get(final int index) {         
  return super.get(index);         
}    
   
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: jfree/jcommon

/**
 * Returns a hash code value for the object.
 *
 * @return the hashcode
 */
public int hashCode() {
  return super.hashCode();
}
origin: org.jfree/jcommon

/**          
 * Sets an object reference (overwriting any existing object).       
 *   
 * @param index  the object index.   
 * @param object  the object (<code>null</code> permitted).          
 */          
public void set(final int index, final Object object) {      
  super.set(index, object);        
}    
   
origin: jfree/jcommon

/**          
 * Returns the index of the specified object, or -1 if the object is not in the list.        
 *   
 * @param object  the object.        
 *   
 * @return The index or -1.          
 */          
public int indexOf(final Object object) {    
  return super.indexOf(object);    
}    
   
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: org.jfree/jcommon

/**
 * Returns a hash code value for the object.
 *
 * @return the hashcode
 */
public int hashCode() {
  return super.hashCode();
}
origin: jfree/jcommon

/**          
 * Sets an object reference (overwriting any existing object).       
 *   
 * @param index  the object index.   
 * @param object  the object (<code>null</code> permitted).          
 */          
public void set(final int index, final Object object) {      
  super.set(index, object);        
}    
   
origin: org.jfree/jcommon

/**          
 * Returns the index of the specified object, or -1 if the object is not in the list.        
 *   
 * @param object  the object.        
 *   
 * @return The index or -1.          
 */          
public int indexOf(final Object object) {    
  return super.indexOf(object);    
}    
   
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;
}
origin: org.jfree/jcommon

  /**
   * Returns a hash code value for the object.
   *
   * @return the hashcode
   */
  public int hashCode() {
    return super.hashCode();
  }
}
origin: jfree/jcommon

/**
 * Tests the list for equality with another object (typically also a list).
 *
 * @param o  the other object.
 *
 * @return A boolean.
 */
public boolean equals(final Object o) {
  if (o instanceof BooleanList) {
    return super.equals(o);
  }
  return false;
}
origin: org.jfree/com.springsource.org.jfree

/**          
 * Sets an object reference (overwriting any existing object).       
 *   
 * @param index  the object index.   
 * @param object  the object (<code>null</code> permitted).          
 */          
public void set(final int index, final Object object) {      
  super.set(index, object);        
}    
   
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns an independent copy of the list.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException if an item in the list does not support cloning.
 */
public Object clone() throws CloneNotSupportedException {
  return super.clone();
}
 
origin: jfree/jcommon

/**          
 * Returns the object at the specified index, if there is one, or <code>null</code>.         
 *   
 * @param index  the object index.   
 *   
 * @return The object or <code>null</code>.          
 */          
public Object get(final int index) {         
  return super.get(index);         
}    
   
origin: org.jfree/com.springsource.org.jfree

/**          
 * Returns the index of the specified object, or -1 if the object is not in the list.        
 *   
 * @param object  the object.        
 *   
 * @return The index or -1.          
 */          
public int indexOf(final Object object) {    
  return super.indexOf(object);    
}    
   
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: jfree/jcommon

  /**
   * Returns a hash code value for the object.
   *
   * @return the hashcode
   */
  public int hashCode() {
    return super.hashCode();
  }
}
org.jfree.utilAbstractObjectList

Javadoc

A list of objects that can grow as required.

Most used methods

  • 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).
  • size
    Returns the size of the list.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now