|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.StableOrder
public abstract class StableOrder
This is a class that persists a particular order of elements. It will be able to ensure that new elements are only added at the end of the existing ones. The order is persisted between server startups. The persistence is realm-aware based on the current session's realm.
| Nested Class Summary | |
|---|---|
static interface |
StableOrder.StringRepresentation
|
| Constructor Summary | |
|---|---|
StableOrder()
|
|
| Method Summary | |
|---|---|
abstract void |
clear()
Re-set the order |
abstract List |
getElements()
Returns the list of ordered elements (the string representations) contained in this order. |
static StableOrder |
getOrder(String name)
Get an instance of a stable order. |
static void |
setFactory(ariba.util.core.StableOrder.StableOrderFactory theFactory)
|
void |
setOrder(List newOrder)
Force the order to be the same order as the passed in List |
abstract void |
setOrder(List newOrder,
StableOrder.StringRepresentation representation)
Force the order to be the same order as the passed in List |
List |
stableOrder(List original)
Stable order for lists of strings |
abstract List |
stableOrder(List original,
StableOrder.StringRepresentation representation)
Return the original list in the order (named by the orderKey) any subsequent call to this method with this name results in the same order. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StableOrder()
| Method Detail |
|---|
public List stableOrder(List original)
stableOrder(List, StringRepresentation)
public abstract List stableOrder(List original,
StableOrder.StringRepresentation representation)
original - Original listrepresentation - Used to map objects to strings (uniquely) (or null to use toString)
public abstract List getElements()
public abstract void clear()
public void setOrder(List newOrder)
newOrder - Order
public abstract void setOrder(List newOrder,
StableOrder.StringRepresentation representation)
newOrder - Orderrepresentation - a mapping to map the element objects to stringspublic static void setFactory(ariba.util.core.StableOrder.StableOrderFactory theFactory)
public static StableOrder getOrder(String name)
name - A name for the order
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||