Example usage:
MutableGraph<Integer> graph =
GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build();
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ElementOrder.
The type of ordering that this object specifies. |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final ElementOrder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <T1 extends T> ElementOrder | |
| public Comparator | |
| pack-priv <K extends T, V> Map | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public static <S> ElementOrder | |
| public static <S extends Comparable | natural()
Returns an instance which specifies that the natural ordering of the elements is guaranteed. |
| public static <S> ElementOrder | sorted(Comparator<S> comparator)
Returns an instance which specifies that the ordering of the elements is guaranteed to be
determined by |
| public static <S> ElementOrder | stable()
Returns an instance which specifies that ordering is guaranteed to be always be the same across iterations, and across releases. |
| public String | |
| public ElementOrder. | |
| public static <S> ElementOrder |
| comparator | back to summary |
|---|---|
private final Comparator<T> comparator
| |
| type | back to summary |
|---|---|
| private final ElementOrder. | |
| ElementOrder | back to summary |
|---|---|
| private ElementOrder(ElementOrder. | |
| cast | back to summary |
|---|---|
pack-priv <T1 extends T> ElementOrder
| |
| comparator | back to summary |
|---|---|
| public Comparator Returns the
| |
| createMap | back to summary |
|---|---|
| pack-priv <K extends T, V> Map Returns an empty mutable map whose keys will respect this | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| insertion | back to summary |
|---|---|
| public static <S> ElementOrder Returns an instance which specifies that insertion ordering is guaranteed. | |
| natural | back to summary |
|---|---|
| public static <S extends Comparable Returns an instance which specifies that the natural ordering of the elements is guaranteed. | |
| sorted | back to summary |
|---|---|
| public static <S> ElementOrder Returns an instance which specifies that the ordering of the elements is guaranteed to be
determined by | |
| stable | back to summary |
|---|---|
| public static <S> ElementOrder Returns an instance which specifies that ordering is guaranteed to be always be the same across iterations, and across releases. Some methods may have stronger guarantees. This instance is only useful in combination with In combination with
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| type | back to summary |
|---|---|
| public ElementOrder. Returns the type of ordering used. | |
| unordered | back to summary |
|---|---|
| public static <S> ElementOrder Returns an instance which specifies that no ordering is guaranteed. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ElementOrder. | |
| public static final ElementOrder. | |
| public static final ElementOrder. | |
| public static final ElementOrder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ElementOrder. | |
| public static ElementOrder. |
| INSERTION | back to summary |
|---|---|
| public static final ElementOrder. | |
| SORTED | back to summary |
|---|---|
| public static final ElementOrder. | |
| STABLE | back to summary |
|---|---|
| public static final ElementOrder. | |
| UNORDERED | back to summary |
|---|---|
| public static final ElementOrder. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static ElementOrder. | |
| values | back to summary |
|---|---|
| public static ElementOrder. | |