org.mmbase.util
Class SortedBundle.ValueWrapper

java.lang.Object
  extended byorg.mmbase.util.SortedBundle.ValueWrapper
All Implemented Interfaces:
Comparable
Enclosing class:
SortedBundle

public static class SortedBundle.ValueWrapper
extends Object
implements Comparable

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 v)
           
SortedBundle.ValueWrapper(Object k, Object v, Comparator c)
           
 
Method Summary
 int compareTo(Object o)
           
 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 v)

SortedBundle.ValueWrapper

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

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o)

toString

public String toString()

getKey

public Object getKey()

hashCode

public int hashCode()
See Also:
Object.hashCode()


MMBase build 1.8.1.20060716