fuego.papi
Class Ordering
java.lang.Object
fuego.papi.Ordering
- All Implemented Interfaces:
- Serializable
public class Ordering
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Ordering
public Ordering()
isEmpty
public boolean isEmpty()
getEntry
public Ordering.Entry getEntry(int index)
getEntry
public Ordering.Entry getEntry(String variableId)
removeEntry
public boolean removeEntry(String variableId)
getEntryCount
public int getEntryCount()
add
public int add(VarDefinition variable,
boolean ascending)
add
public int add(String variableId,
boolean ascending)
add
public int add(Ordering.Entry entry)
update
public int update(String variableId,
boolean ascending)
- Updates the ascending order for the specified variable.
- Parameters:
variableId
- variable Id to update.ascending
- true
if you sort in ascending order.
- Returns:
- the position of the element in the list or -1 if not exist.
update
public int update(VarDefinition variable,
boolean ascending)
- Updates the ascending order for the specified variable.
- Parameters:
variable
- VarDefinition to update.ascending
- true
if you sort in ascending order.
- Returns:
- the position of the element in the list or -1 if not exist.
clear
public void clear()
contains
public boolean contains(String variableId)
contains
public boolean contains(Ordering.Entry entry)
copy
public Ordering copy()
toArray
public Ordering.Entry[] toArray()
indexOf
public int indexOf(Ordering.Entry entry)
removeEntry
public boolean removeEntry(Ordering.Entry entry)
removeEntry
public Ordering.Entry removeEntry(int index)
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
© Copyright 1996/2005 Fuego Inc. All Rights Reserved