TreeMap values - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for TreeMap values method.

This code example shows how to use the following methods:values
    public Set<String> keySet() {
        return wrappedMap.keySet();
    } 
 
    public Collection<SortedSet<String>> values() {
        return wrappedMap.values();
    } 
 
    public Set<java.util.Map.Entry<String, SortedSet<String>>> entrySet() {
        return wrappedMap.entrySet();
    } 
} 
6
CodeRank
This code example shows how to use the following methods:put, size, values
     * @param zimap maps string ids to DateTimeZone objects. 
     */ 
    static void writeZoneInfoMap(DataOutputStream dout, Map<String, DateTimeZone> zimap) throws IOException {
        // Build the string pool. 
        Map<String, Short> idToIndex = new HashMap<String, Short>(zimap.size());
        TreeMap<Short, String> indexToId = new TreeMap<Short, String>();
 
        short count = 0;
        for (Entry<String, DateTimeZone> entry : zimap.entrySet()) {
            String id = (String)entry.getKey();
            if (!idToIndex.containsKey(id)) {
                Short index = Short.valueOf(count);
                idToIndex.put(id, index);
                indexToId.put(index, id);
                if (++count == 0) {
                    throw new InternalError("Too many time zone ids");
                } 
            } 
            id = ((DateTimeZone)entry.getValue()).getID();
            if (!idToIndex.containsKey(id)) {

6
CodeRank
This code example shows how to use the following methods:values
        return SetAdapter.adapt(this.treeMap.keySet());
    } 
 
    public MutableCollection<V> values() 
    { 
        return CollectionAdapter.adapt(this.treeMap.values());
    } 
 
    public Comparator<? super K> comparator()
    { 
        return this.treeMap.comparator();
    } 
 
    public V get(Object key) 
    { 
        return this.treeMap.get(key);
    } 
 
    public V put(K key, V value)
    { 
5
CodeRank
This code example shows how to use the following methods:values
	public String toString() {
		return treeMap.toString();
	} 
 
	public Collection<Value> values() {
		return treeMap.values();
	} 
 
	public void putAll(Map<? extends Key, ? extends Value> map)  throws KeyAlreadyCachedException{
 
		for (Entry<? extends Key, ? extends Value> entry : map.entrySet()) {
 
			if (this.treeMap.containsKey(entry.getKey())) {
				throw new KeyAlreadyCachedException(entry.getKey());
			} 
		} 
 
		this.treeMap.putAll(map);
	} 
} 
5
CodeRank
This code example shows how to use the following methods:values
    public Set<String> keySet() {
        return wrappedMap.keySet();
    } 
 
    public Collection<SortedSet<String>> values() {
        return wrappedMap.values();
    } 
 
    public Set<java.util.Map.Entry<String, SortedSet<String>>> entrySet() {
        return wrappedMap.entrySet();
    } 
} 
4
CodeRank
This code example shows how to use the following methods:values
	 * this bean information. 
	 *  
	 * @return a collection of JETAPropertyDescriptor objects 
	 */ 
	public Collection getPropertyDescriptors() {
		return m_props.values();
	} 
 
	/** 
	 * Registers a property descriptor for this info object. This allows us to 
	 * add properties dynamically. 
	 *  
	 * @param prop 
	 *            the property descriptor to register with this bean 
	 *            information. 
	 */ 
	void register(JETAPropertyDescriptor prop) {
		if (prop != null) {
			m_props.put(prop.getName(), prop);
		} 
4
CodeRank
This code example shows how to use the following methods:values
	@Override 
	public Iterator<T> iterator() 
	{ 
		_r.lock(); 
		try { 
			return _objectMap.values().iterator(); 
		} 
		finally { _r.unlock(); } 
	} 
} 
4
CodeRank
This code example shows how to use the following methods:clear, values
    /* package-private for now */ Iterator getResourceFiles(Project project) {
        if (src == null) {
            return new FileResourceIterator(project, getBasedir(), getIncludedFiles());
        } 
        scanme(); 
        return matchFileEntries.values().iterator();
    } 
 
    /** 
     * Get the set of Resources that represent directories. 
     * @param project since Ant 1.8 
     * @return an Iterator of Resources. 
     * @since Ant 1.7 
     */ 
    /* package-private for now */  Iterator getResourceDirectories(Project project) {
        if (src == null) {
            return new FileResourceIterator(project, getBasedir(), getIncludedDirectories());
        } 
        scanme(); 
        return matchDirEntries.values().iterator();

4
CodeRank
This code example shows how to use the following methods:values
    public File getSLDFile() {
        return file;
    } 
 
	public Collection<String> getAllFilenames() {
		return Collections.unmodifiableCollection(fileTable.values());
	} 
 
	public Collection<String> getAllFunctions() {
		return Collections.unmodifiableCollection(startAddrForFunc.values());	
	} 
 
  
} 
4
CodeRank
This code example shows how to use the following methods:values
	 * 
	 * @return The iterator. 
	 */ 
	public Iterator getNodeIterator ()
	{ 
		return nodeMap.values ().iterator ();
	} 
} 
4
CodeRank
values Method Overview
Returns a Collection view of the values contained in this map.
See Code Examples for other Java 8 TreeMap Methods: