public class Options
extends net.sf.oriented.impl.items.OptionsInternal
FactoryFactory.FactoryFactory(Options).| Modifier and Type | Class and Description |
|---|---|
static class |
Options.Impl
The choices of underlying implementation.
|
| Constructor and Description |
|---|
Options()
Default options (32 bit implementation).
|
Options(Options.Impl hash)
Allows using the non-default implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Label |
getLabel(int i)
Get the ith label from the universe.
|
boolean |
getPlusMinus()
Are we using the +/- form.
|
boolean |
getSingleChar()
Are we using short labels or long labels?
|
List<Label> |
getUniverse()
Returns all the known labels.
|
<T> JavaSet<T> |
javaSetFor(Class<T> cl)
Not part of the API
|
void |
setLongLabels()
Some of the
Label's used may consist of more than one character. |
boolean |
setPlusMinus(boolean usePM)
Use 0 + - as the representation.
|
void |
setShortLabels()
All the
Label's used consist of a single character (unicode code
point). |
void |
setUniverse(String[] a)
Provide all the
Labels to be used, as Strings. |
public Options()
public Options(Options.Impl hash)
public void setUniverse(String[] a)
Labels to be used, as Strings. This allows
representations as sequences of {-1, 0, 1}, for instance.a - Converted to Labelpublic boolean setPlusMinus(boolean usePM)
usePM - If true uses the +/- form.public boolean getPlusMinus()
public void setShortLabels()
Label's used consist of a single character (unicode code
point). Use short forms for everything.public void setLongLabels()
Label's used may consist of more than one character. Use
longer forms for everything.public boolean getSingleChar()
public List<Label> getUniverse()
public Label getLabel(int i)