none
Collections in java with example program

    คำถาม

  • Class TreeMap

    Implemented Interfaces:
        Cloneable,
    Map,
    Serializable,
     SortedMap

    Syntax:
    public class TreeMap extends AbstractMap implements SortedMap, Cloneable, Serializable

    Constructor:
    TreeMap()
    TreeMap(Comparator c)
    TreeMap(Map m)
    TreeMap(SortedMap m)
    Method Summary
    public int size()
    public boolean containsKey(Object key)
    public boolean containsValue(Object value)
    public Object get(Object key)
    public Comparator comparator()
    public Object firstKey()
    public Object lastKey()
    public void putAll(Map map)
    public Object put(Object key,   Object value)
    public Object remove(Object key)
    public void clear()
    public Object clone()
    public Set keySet()
    public Collection values()
    public Set entrySet()
    public SortedMap subMap(Object fromKey,   Object toKey)
    public SortedMap headMap(Object toKey)
    public SortedMap tailMap(Object fromKey)


    Collections in java
    22 สิงหาคม 2554 10:42