public class PaintList extends AbstractObjectList
Paint objects.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
DEFAULT_INITIAL_CAPACITY| Constructor and Description |
|---|
PaintList()
Creates a new list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests the list for equality with another object (typically also a list).
|
java.awt.Paint |
getPaint(int index)
Returns a
Paint object from the list. |
int |
hashCode()
Returns a hash code value for the object.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
void |
setPaint(int index,
java.awt.Paint paint)
Sets the
Paint for an item in the list. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
private static final long serialVersionUID
public java.awt.Paint getPaint(int index)
Paint object from the list.index - the index (zero-based).public void setPaint(int index,
java.awt.Paint paint)
Paint for an item in the list. The list is expanded if necessary.index - the index (zero-based).paint - the Paint.public boolean equals(java.lang.Object obj)
equals in class AbstractObjectListobj - the other object (null permitted).public int hashCode()
hashCode in class AbstractObjectListprivate void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
stream - the output stream.java.io.IOException - if there is an I/O error.private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - the input stream.java.io.IOException - if there is an I/O error.java.lang.ClassNotFoundException - if there is a classpath problem.