public class ValueSet
extends java.util.ArrayList
| Constructor and Description |
|---|
ValueSet()
Constructor with no values.
|
ValueSet(java.lang.String astrInput)
Constructor for value set in base form (using "not" and comma as value separator).
|
ValueSet(java.lang.String astrInput,
java.util.Locale aLocale)
Constructor for value set in localized form.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNegation() |
boolean |
equals(java.lang.Object aObject)
Improve performance by delegating "equals" to our own isSame method.
|
boolean |
isDontCare()
Return true if this value set is the "don't care" set (i.e., if the value
set has only one element and that value is the SET_ALL_VALUE).
|
boolean |
isNegated()
Returns an indication of whether this value set is negated.
|
boolean |
isOpposite(ValueSet aValueSet) |
boolean |
isSame(ValueSet aValueSet)
Determines whether two ValueSet instances are identical, specifically
the same size, same sequence, same values.
|
void |
setNegated(boolean abNegated)
Set ibNegated with parameter.
|
java.lang.String |
toConciseString()
Return the base value set formatted without annoying extra blanks.
|
java.lang.String |
toConciseString(java.util.Locale aLocale)
Return the localized value set formatted without annoying extra blanks.
|
java.util.Set |
toSet()
Return this ValueSet instance as a set.
|
java.lang.String |
toString()
String representation of object.
|
java.lang.String |
toString(java.util.Locale aLocale)
Localized string representation of object.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic ValueSet()
public ValueSet(java.lang.String astrInput)
astrInput - Value set in base form (e.g., "not {'A', 'B'}").public ValueSet(java.lang.String astrInput,
java.util.Locale aLocale)
astrInput - Value set in localized form (e.g., "not {'A', 'B'}").aLocale - Locale that defines how input is expressed.public boolean isNegated()
true if the value set originally started with "not".public boolean equals(java.lang.Object aObject)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.util.AbstractListaObject - Object to test.true if value sets are equal.public boolean isSame(ValueSet aValueSet)
aValueSet - ValueSet instance for comparison.public void setNegated(boolean abNegated)
abNegated - public boolean isDontCare()
true if value set is the "don't care" set.public java.lang.String toString()
toString in class java.util.AbstractCollectionpublic java.lang.String toString(java.util.Locale aLocale)
aLocale - Locale to use to format string.public java.lang.String toConciseString()
public java.lang.String toConciseString(java.util.Locale aLocale)
aLocale - Locale to use to format string.public java.util.Set toSet()
public boolean isOpposite(ValueSet aValueSet)
public boolean containsNegation()
Copyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.