public class VariableList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private SortedArray<Variable> |
list
Variable list
|
Constructor and Description |
---|
VariableList()
Create empty list
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String... list)
Add a variable list
|
void |
add(java.lang.String variable)
Add a variable
|
void |
add(Variable variable)
Add a variable
|
void |
add(VariableList list)
Add a variable list
|
void |
clear()
Clear the list
|
boolean |
contains(Variable variable)
Indicates if a variable is in the list
|
boolean |
equals(java.lang.Object object)
Indicates if an object is equals to the variable list
Parent documentation: |
boolean |
equals(VariableList variableList)
Indicates if a variable list is equals to the variable list
|
Variable |
get(int index)
Obtain a variable from list
|
int |
numberOfVariables()
Number of variable inside the list
|
java.lang.String |
toString()
String representation
|
private final SortedArray<Variable> list
public void add(java.lang.String... list)
list
- List to addpublic void add(java.lang.String variable)
variable
- Variable to addpublic void add(Variable variable)
variable
- Variable to addpublic void add(VariableList list)
list
- List to addpublic void clear()
public boolean contains(Variable variable)
variable
- Tested variabletrue
if a variable is in the listpublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- Object to comparetrue
if equalsObject.equals(java.lang.Object)
public boolean equals(VariableList variableList)
variableList
- Variable list to comparetrue
if equalspublic Variable get(int index)
index
- Variable indexpublic int numberOfVariables()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()