A simple key-value pair helper class.
public class KeyValuePair< K, V >
<K> the type of the key parameter
<V> the type of the value parameter
All public members of the KeyValuePair< K, V > class, including all inherited members.
Name | Description |
---|---|
Retrieves the key. | |
Retrieves the value. | |
Overwrites the actual key with the specified one. | |
Overwrites the actual value with the specified one. | |
Commonly used in creating a selection java.util.List for the SelectionBoxAttribute. For example, private static final SelectionBoxAttribute inIncludeInActive = new SelectionBoxAttribute("ACTIVE_ID","Include In-Active [Default: false]", true); static { inIncludeInActive.getItems().add(new KeyValuePair<String, String>("true", "True")); inIncludeInActive.getItems().add(new KeyValuePair<String, String>("false", "False")); } |
getKey method
getValue method
KeyValuePair method
setKey method
setValue method
toString method
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, Sybase, Inc. - Brand Mobiliser API 1.3.0 - October 24, 2012 |