|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeList
List of Type instances (or of things that contain types).
| Method Summary | |
|---|---|
Type |
getType(int n)
Gets the indicated element. |
int |
getWordCount()
Gets the number of 32-bit words required to hold instances of all the elements of this list. |
boolean |
isMutable()
Returns whether this instance is mutable. |
int |
size()
Gets the size of this list. |
TypeList |
withAddedType(Type type)
Returns a new instance which is identical to this one, except that the given item is appended to the end and it is guaranteed to be immutable. |
| Method Detail |
|---|
boolean isMutable()
TypeList interface itself doesn't provide any
means of mutation, but that doesn't mean that there isn't an
extra-interface way of mutating an instance.
true if this instance is mutable or
false if it is immutableint size()
>= 0; the sizeType getType(int n)
NullPointerException.
n - >= 0, < size(); which element
non-null; the indicated elementint getWordCount()
>= 0; the required number of wordsTypeList withAddedType(Type type)
type - non-null; item to append
non-null; an appropriately-constructed instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||