org.mmbase.util
Class SortedBundle.ValueWrapper

java.lang.Object
  extended by org.mmbase.util.SortedBundle.ValueWrapper
All Implemented Interfaces:
Comparable<SortedBundle.ValueWrapper>
Enclosing class:
SortedBundle

public static class SortedBundle.ValueWrapper
extends Object
implements Comparable<SortedBundle.ValueWrapper>

You can specify ValueWrapper.class as a value for the wrapper argument. The keys will be objects with natural order of the values.


Constructor Summary
SortedBundle.ValueWrapper(Object k, Comparable<Object> v)
           
SortedBundle.ValueWrapper(Object k, Object v, Comparator<Object> c)
           
 
Method Summary
 int compareTo(SortedBundle.ValueWrapper other)
           
 boolean equals(Object o)
           
 Object getKey()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortedBundle.ValueWrapper

public SortedBundle.ValueWrapper(Object k,
                                 Comparable<Object> v)

SortedBundle.ValueWrapper

public SortedBundle.ValueWrapper(Object k,
                                 Object v,
                                 Comparator<Object> c)
Method Detail

compareTo

public int compareTo(SortedBundle.ValueWrapper other)
Specified by:
compareTo in interface Comparable<SortedBundle.ValueWrapper>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getKey

public Object getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


MMBase 2.0-SNAPSHOT - null