|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.TableView.SortDictionary
public final class TableView.SortDictionary
Sort dictionary implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Dictionary |
---|
Dictionary.Pair<K,V> |
Constructor Summary | |
---|---|
TableView.SortDictionary()
|
Method Summary | |
---|---|
boolean |
containsKey(String columnName)
Tests the existence of a key in the dictionary. |
Dictionary.Pair<String,SortDirection> |
get(int index)
|
SortDirection |
get(String columnName)
Retrieves the value for the given key. |
int |
getLength()
|
boolean |
isEmpty()
|
Iterator<String> |
iterator()
|
SortDirection |
put(String columnName,
SortDirection sortDirection)
Sets the value of the given key, creating a new entry or replacing the existing value. |
SortDirection |
remove(String columnName)
Removes a key/value pair from the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableView.SortDictionary()
Method Detail |
---|
public SortDirection get(String columnName)
Dictionary
get
in interface Dictionary<String,SortDirection>
columnName
- The key whose value is to be returned.
public SortDirection put(String columnName, SortDirection sortDirection)
Dictionary
put
in interface Dictionary<String,SortDirection>
columnName
- The key whose value is to be set.sortDirection
- The value to be associated with the given key.
public SortDirection remove(String columnName)
Dictionary
remove
in interface Dictionary<String,SortDirection>
columnName
- The key whose mapping is to be removed.
public boolean containsKey(String columnName)
Dictionary
containsKey
in interface Dictionary<String,SortDirection>
columnName
- The key whose presence in the dictionary is to be tested.
public boolean isEmpty()
public Dictionary.Pair<String,SortDirection> get(int index)
public int getLength()
public Iterator<String> iterator()
iterator
in interface Iterable<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |