Package io.github.sandydunlop.markista.model
Class Sequence
java.lang.Object
io.github.sandydunlop.markista.model.VariableType
io.github.sandydunlop.markista.model.VariableType.TypeParameter
io.github.sandydunlop.markista.model.VariableType.Sequence
All Implemented Interfaces:
java.lang.Iterable<io.github.sandydunlop.markista.model.VariableType.TypeParameter>
Enclosing Class:
io.github.sandydunlop.markista.model.VariableType
public static class Sequence
extends TypeParameter
Nested Class Summary
| Modifier and Type | Class | Description |
|---|---|---|
| private | VariableType.Sequence.SequenceIterator |
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| private static final int | INITIAL_CAPACITY | |
| private TypeParameter[] | elements | |
| private int | size |
Constructor Summary
| Constructor | Description |
|---|---|
| Sequence() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| private void | resize() | |
| public int | size() | |
| public void | append(TypeParameter element) | |
| public TypeParameter | get(int index) | |
| public TypeParameter | getFirst() | |
| public TypeParameter | getLast() | |
| public Iterator<TypeParameter> | iterator() |
Methods inherited from TypeParameter
getBoundingParameter, getBoundingKind
Methods inherited from VariableType
setFullTypeName, toString, matchingClosingChevron, parseBoundingConstraint, arrayDimensions, getLink, stringify, boundingConstraint, asGeneric, parse, parseSequence, parseType, getFullTypeName, getTypeParameterDeclaration, parseGeneric, parseArray, isArray, asSequence, getRawTypeName
Field Details
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
See Also:
elements
private TypeParameter[] elements
size
private int size
Method Details
resize
private void resize()
size
public int size()
append
public void append(TypeParameter element)
get
public TypeParameter get(int index)
getFirst
public TypeParameter getFirst()
getLast
public TypeParameter getLast()
iterator
public Iterator<TypeParameter> iterator()
Specified By: