|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.info.OrderedProperty<S>
public class OrderedProperty<S extends Storable>
Represents a property paired with a preferred ordering direction.
| Method Summary | ||
|---|---|---|
void |
appendTo(Appendable app)
Append the string representation of this object to the given Appendable. |
|
OrderedProperty<S> |
direction(Direction direction)
|
|
boolean |
equals(Object obj)
|
|
static
|
get(ChainedProperty<S> property,
Direction direction)
Returns a canonical instance. |
|
static
|
get(StorableProperty<S> property,
Direction direction)
Returns a canonical instance. |
|
ChainedProperty<S> |
getChainedProperty()
|
|
Direction |
getDirection()
|
|
int |
hashCode()
|
|
static
|
parse(StorableInfo<S> info,
String str)
Parses an ordering property, which may start with a '+' or '-' to indicate direction. |
|
static
|
parse(StorableInfo<S> info,
String str,
Direction defaultDirection)
Parses an ordering property, which may start with a '+' or '-' to indicate direction. |
|
OrderedProperty<S> |
reverse()
|
|
String |
toString()
Returns the chained property in a parseable form. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <S extends Storable> OrderedProperty<S> get(StorableProperty<S> property,
Direction direction)
IllegalArgumentException - if property is null
public static <S extends Storable> OrderedProperty<S> get(ChainedProperty<S> property,
Direction direction)
IllegalArgumentException - if property is null
public static <S extends Storable> OrderedProperty<S> parse(StorableInfo<S> info,
String str)
throws IllegalArgumentException
info - Info for Storable type containing propertystr - string to parse
IllegalArgumentException - if any required parameter is null or
string format is incorrect
public static <S extends Storable> OrderedProperty<S> parse(StorableInfo<S> info,
String str,
Direction defaultDirection)
throws IllegalArgumentException
info - Info for Storable type containing propertystr - string to parsedefaultDirection - default direction if not specified in
string. If null, ascending order is defaulted.
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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public void appendTo(Appendable app)
throws IOException
Appender
appendTo in interface Appenderapp - Appendable object to receive string representation
IOException - if thrown from given Appendable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||