public class Set extends Object implements Collection<Scalar>, Value
Value. A set can appear on the right hand side of an
AttributeStatement.| Constructor and Description |
|---|
Set() |
Set(Collection<Scalar> values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Scalar object) |
boolean |
addAll(Collection<? extends Scalar> vals) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> vals) |
boolean |
equals(Object object) |
int |
hashcode() |
boolean |
isEmpty() |
Iterator<Scalar> |
iterator() |
String |
normalize() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> vals) |
boolean |
retainAll(Collection<?> vals) |
int |
size() |
Scalar[] |
toArray() |
<T> T[] |
toArray(T[] objects) |
String |
toString() |
String |
toString(boolean retainQuotes)
Provides a string representation of the Set with single or double quotes
surrounding each value if the retainQuotes flag is set to true and the
ValueType was SINGLE_QUOTED or DOUBLE_QUOTED for a value.
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithashCode, parallelStream, removeIf, spliterator, streampublic Set()
public Set(Collection<Scalar> values)
public int size()
size in interface Collection<Scalar>public boolean isEmpty()
isEmpty in interface Collection<Scalar>public boolean contains(Object object)
contains in interface Collection<Scalar>public Scalar[] toArray()
toArray in interface Collection<Scalar>public <T> T[] toArray(T[] objects)
toArray in interface Collection<Scalar>public boolean add(Scalar object)
add in interface Collection<Scalar>public boolean remove(Object object)
remove in interface Collection<Scalar>public boolean containsAll(Collection<?> vals)
containsAll in interface Collection<Scalar>public boolean addAll(Collection<? extends Scalar> vals)
addAll in interface Collection<Scalar>public boolean removeAll(Collection<?> vals)
removeAll in interface Collection<Scalar>public boolean retainAll(Collection<?> vals)
retainAll in interface Collection<Scalar>public void clear()
clear in interface Collection<Scalar>public String toString(boolean retainQuotes)
retainQuotes - Set to true to return the value with quotes surrounding it if it
was originally there in the label.public boolean equals(Object object)
equals in interface Collection<Scalar>equals in class Objectpublic int hashcode()
Copyright © 2019. All rights reserved.