当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.0
Children.SortedMap (NetBeans Nodes API) - NetBeans API Javadoc 5.5.0
org.openide.nodes
Class Children.SortedMap
java.lang.Object
org.openide.nodes.Children
org.openide.nodes.Children.Map
org.openide.nodes.Children.SortedMap
- Enclosing class:
- Children
public static class Children.SortedMap
- extends Children.Map
Maintains a list of children sorted by the provided comparator in a map.
Similar to Children.SortedArray
.
Children.SortedMap
public Children.SortedMap()
- Create an empty list.
Children.SortedMap
protected Children.SortedMap(Map map)
- Create an empty list with a specific storage method.
- Parameters:
map
- the map to use with this object- See Also:
Children.Map.Children.Map(java.util.Map)
setComparator
public void setComparator(Comparator c)
- Set the comparator. The children will be resorted.
The comparator is used to compare Nodes, if no
comparator is used then values will be compared by
the use of natural ordering.
- Parameters:
c
- the new comparator that should compare nodes
getComparator
public Comparator getComparator()
- Get the current comparator.
- Returns:
- the comparator