Code example for Ordering

Methods: compoundonResultOf

			this(partialValueOrdering, new HashMap<K, V>());
		private ValueComparableMap(Ordering<? super V> partialValueOrdering, HashMap<K, V> valueMap) {
			super(partialValueOrdering // Apply the value ordering
					.onResultOf(Functions.forMap(valueMap)) // On the result of
															// getting the value 
															// for the key from 
															// the map 
					.compound(Ordering.natural())); // as well as ensuring that
													// the keys don't get 
													// clobbered 
			this.valueMap = valueMap;
		public V get(Object key) { 
			return this.valueMap.get(key);
Experience pair programming with AI  Get Codota for Java