congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Reference (javax.naming)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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