Tabnine Logo
AbstractObjectList.get
Code IndexAdd Tabnine to your IDE (free)

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

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

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 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

/**          
 * 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: 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/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

/**
 * 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

/**
 * 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.utilAbstractObjectListget

Javadoc

Returns the object at the specified index, if there is one, or null.

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.
  • 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

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Top Sublime Text plugins
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