public class OrderingList<S extends Storable> extends java.util.AbstractList<OrderedProperty<S>> implements java.io.Serializable
orderings. Instances
are immutable, canonical and cached. Calls to "equals" and "hashCode" are
fast.| Modifier and Type | Method and Description |
|---|---|
OrderingList<S> |
concat(java.lang.Class<S> type,
java.lang.String property)
Returns a list which concatenates this one with the given property.
|
OrderingList<S> |
concat(OrderedProperty<S> property)
Returns a list which concatenates this one with the given property.
|
OrderingList<S> |
concat(OrderingList<S> other)
Returns a list which concatenates this one with the other one.
|
static <S extends Storable> |
emptyList()
Returns a canonical empty instance.
|
boolean |
equals(java.lang.Object other) |
static <S extends Storable> |
get(java.lang.Class<S> type,
java.lang.String... orderings)
Returns a canonical instance composed of the given orderings.
|
static <S extends Storable> |
get(java.lang.Class<S> type,
java.lang.String property)
Returns a canonical instance composed of the given ordering.
|
OrderedProperty<S> |
get(int index) |
static <S extends Storable> |
get(java.util.List<OrderedProperty<S>> orderings)
Returns a canonical instance composed of the given orderings.
|
static <S extends Storable> |
get(OrderedProperty<S>... orderings)
Returns a canonical instance composed of the given orderings.
|
int |
hashCode() |
OrderingList<S> |
reduce()
Eliminates redundant ordering properties.
|
OrderingList<S> |
replace(int index,
OrderedProperty<S> property)
Returns a list with the given element replaced.
|
OrderingList<S> |
reverseDirections()
Returns this list with all orderings in reverse.
|
int |
size() |
OrderingList<S> |
subList(int fromIndex,
int toIndex) |
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic static <S extends Storable> OrderingList<S> emptyList()
public static <S extends Storable> OrderingList<S> get(java.lang.Class<S> type, java.lang.String property)
java.lang.IllegalArgumentException - if ordering property is not in Spublic static <S extends Storable> OrderingList<S> get(java.lang.Class<S> type, java.lang.String... orderings)
java.lang.IllegalArgumentException - if any ordering property is not in Spublic static <S extends Storable> OrderingList<S> get(OrderedProperty<S>... orderings)
public static <S extends Storable> OrderingList<S> get(java.util.List<OrderedProperty<S>> orderings)
public int size()
size in interface java.util.Collection<OrderedProperty<S extends Storable>>size in interface java.util.List<OrderedProperty<S extends Storable>>size in class java.util.AbstractCollection<OrderedProperty<S extends Storable>>public OrderedProperty<S> get(int index)
get in interface java.util.List<OrderedProperty<S extends Storable>>get in class java.util.AbstractList<OrderedProperty<S extends Storable>>public OrderingList<S> concat(java.lang.Class<S> type, java.lang.String property)
public OrderingList<S> concat(OrderedProperty<S> property)
public OrderingList<S> concat(OrderingList<S> other)
public OrderingList<S> reduce()
public OrderingList<S> reverseDirections()
public OrderingList<S> replace(int index, OrderedProperty<S> property)
public OrderingList<S> subList(int fromIndex, int toIndex)
subList in interface java.util.List<OrderedProperty<S extends Storable>>subList in class java.util.AbstractList<OrderedProperty<S extends Storable>>public int hashCode()
hashCode in interface java.util.Collection<OrderedProperty<S extends Storable>>hashCode in interface java.util.List<OrderedProperty<S extends Storable>>hashCode in class java.util.AbstractList<OrderedProperty<S extends Storable>>public boolean equals(java.lang.Object other)
equals in interface java.util.Collection<OrderedProperty<S extends Storable>>equals in interface java.util.List<OrderedProperty<S extends Storable>>equals in class java.util.AbstractList<OrderedProperty<S extends Storable>>Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.