|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<OrderedProperty<S>>
com.amazon.carbonado.qe.OrderingList<S>
public class OrderingList<S extends Storable>
Produces unmodifiable lists of orderings. Instances
are immutable, canonical and cached. Calls to "equals" and "hashCode" are
fast.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Method Summary | ||
|---|---|---|
OrderingList<S> |
concat(Class<S> type,
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
|
emptyList()
Returns a canonical empty instance. |
|
boolean |
equals(Object other)
|
|
static
|
get(Class<S> type,
String... orderings)
Returns a canonical instance composed of the given orderings. |
|
static
|
get(Class<S> type,
String property)
Returns a canonical instance composed of the given ordering. |
|
OrderedProperty<S> |
get(int index)
|
|
static
|
get(List<OrderedProperty<S>> orderings)
Returns a canonical instance composed of the given orderings. |
|
static
|
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)
|
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Method Detail |
|---|
public static <S extends Storable> OrderingList<S> emptyList()
public static <S extends Storable> OrderingList<S> get(Class<S> type,
String property)
IllegalArgumentException - if ordering property is not in S
public static <S extends Storable> OrderingList<S> get(Class<S> type,
String... orderings)
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(List<OrderedProperty<S>> orderings)
public int size()
size in interface Collection<OrderedProperty<S extends Storable>>size in interface List<OrderedProperty<S extends Storable>>size in class AbstractCollection<OrderedProperty<S extends Storable>>public OrderedProperty<S> get(int index)
get in interface List<OrderedProperty<S extends Storable>>get in class AbstractList<OrderedProperty<S extends Storable>>
public OrderingList<S> concat(Class<S> type,
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 List<OrderedProperty<S extends Storable>>subList in class AbstractList<OrderedProperty<S extends Storable>>public int hashCode()
hashCode in interface Collection<OrderedProperty<S extends Storable>>hashCode in interface List<OrderedProperty<S extends Storable>>hashCode in class AbstractList<OrderedProperty<S extends Storable>>public boolean equals(Object other)
equals in interface Collection<OrderedProperty<S extends Storable>>equals in interface List<OrderedProperty<S extends Storable>>equals in class AbstractList<OrderedProperty<S extends Storable>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||