| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| protected final Object | Returns: non-null; the indicated element>= 0, < size(); which elementGets the indicated element. |
| protected final Object | Returns: null-ok; the indicated element>= 0, < size(); which elementGets the indicated element, allowing |
| public int | |
| protected final void | |
| public void | shrinkToFit()
Shrinks this instance to fit, by removing any unset
( |
| public final int | |
| private Object | Returns: neverthe index value n)Throws the appropriate exception for the given index value. |
| public String | toHuman()
Implements org. |
| public String | |
| public String | |
| public String | |
| private String | Returns: non-null; the custom stringnull-ok; prefix for the start of the resultnull-ok; separator to insert between each itemnull-ok; suffix for the end of the resultwhether the output is to be human human)Helper for |
| arr | back to summary |
|---|---|
| private Object[] arr
| |
| FixedSizeList | back to summary |
|---|---|
| public FixedSizeList(int size) Constructs an instance. All indices initially contain
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get0 | back to summary |
|---|---|
| protected final Object get0(int n) Gets the indicated element. It is an error to call this with the
index for an element which was never set; if you do that, this
will throw
| |
| getOrNull0 | back to summary |
|---|---|
| protected final Object getOrNull0(int n) Gets the indicated element, allowing
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| set0 | back to summary |
|---|---|
| protected final void set0(int n, Object obj) Sets the element at the given index, but without doing any type checks on the element. This method is protected so that subclasses may offer a safe type-checked public interface to their clients.
| |
| shrinkToFit | back to summary |
|---|---|
| public void shrinkToFit() Shrinks this instance to fit, by removing any unset
( | |
| size | back to summary |
|---|---|
| public final int size() Gets the number of elements in this list. | |
| throwIndex | back to summary |
|---|---|
| private Object throwIndex(int n) Throws the appropriate exception for the given index value.
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements org. Doc from org. Return the "human" string form of this instance. This is
generally less "debuggy" than
| |
| toHuman | back to summary |
|---|---|
| public String toHuman(String prefix, String separator, String suffix) Gets a customized human string for this instance. This method will
only work if every element of the list implements | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(String prefix, String separator, String suffix) Gets a customized string form for this instance. | |
| toString0 | back to summary |
|---|---|
| private String toString0(String prefix, String separator, String suffix, boolean human) Helper for | |