public class OrderedProperty<S extends Storable> extends java.lang.Object implements java.io.Serializable, Appender
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(java.lang.Appendable app)
Append the string representation of this object to the given Appendable.
|
OrderedProperty<S> |
direction(Direction direction) |
boolean |
equals(java.lang.Object obj) |
static <S extends Storable> |
get(ChainedProperty<S> property,
Direction direction)
Returns a canonical instance.
|
static <S extends Storable> |
get(StorableProperty<S> property,
Direction direction)
Returns a canonical instance.
|
ChainedProperty<S> |
getChainedProperty() |
Direction |
getDirection() |
int |
hashCode() |
static <S extends Storable> |
parse(StorableInfo<S> info,
java.lang.String str)
Parses an ordering property, which may start with a '+' or '-' to
indicate direction.
|
static <S extends Storable> |
parse(StorableInfo<S> info,
java.lang.String str,
Direction defaultDirection)
Parses an ordering property, which may start with a '+' or '-' to
indicate direction.
|
OrderedProperty<S> |
reverse() |
java.lang.String |
toString()
Returns the chained property in a parseable form.
|
public static <S extends Storable> OrderedProperty<S> get(StorableProperty<S> property, Direction direction)
java.lang.IllegalArgumentException - if property is nullpublic static <S extends Storable> OrderedProperty<S> get(ChainedProperty<S> property, Direction direction)
java.lang.IllegalArgumentException - if property is nullpublic static <S extends Storable> OrderedProperty<S> parse(StorableInfo<S> info, java.lang.String str) throws java.lang.IllegalArgumentException
info - Info for Storable type containing propertystr - string to parsejava.lang.IllegalArgumentException - if any required parameter is null or
string format is incorrectpublic static <S extends Storable> OrderedProperty<S> parse(StorableInfo<S> info, java.lang.String str, Direction defaultDirection) throws java.lang.IllegalArgumentException
info - Info for Storable type containing propertystr - string to parsedefaultDirection - default direction if not specified in
string. If null, ascending order is defaulted.java.lang.IllegalArgumentException - if any required parameter is null or
string format is incorrectpublic ChainedProperty<S> getChainedProperty()
public Direction getDirection()
public OrderedProperty<S> reverse()
public OrderedProperty<S> direction(Direction direction)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void appendTo(java.lang.Appendable app)
throws java.io.IOException
AppenderCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.