localsolver
public class LSCollection extends java.lang.Object implements java.lang.Iterable<java.lang.Long>
LSModel,
LSExpression| Modifier and Type | Method and Description |
|---|---|
void |
add(long val)
Adds the given value to this collection.
|
void |
clear()
Removes all values of this collection.
|
long |
count()
Gets the number of values in the collection.
|
boolean |
equals(java.lang.Object obj) |
long |
get(int position)
Gets the value at the given position.
|
int |
hashCode() |
java.util.Iterator<java.lang.Long> |
iterator()
Returns an iterator for the content of this collection.
|
java.lang.String |
toString() |
public void add(long val)
LSState.Stopped. This function will fail if the given value is
outside of the range of the list or if this value is already included in
this list (remind that a list cannot contain twice the same value).val - The value to be added.public void clear()
LSState.Stopped.public long count()
public long get(int position)
position - The considered position (must be non negative and
strictly smaller than the number of values in the collection).public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator<java.lang.Long> iterator()
iterator in interface java.lang.Iterable<java.lang.Long>