Code example for SortedMap

Methods: headMap

0
 
		return token;
	} 
 
	private static void _expungeExpiredToken(long currentTime) {
		SortedMap<Long, String> headMap = _tokens.headMap(currentTime);
 
		headMap.clear();
	} 
 
	private static final SortedMap<Long, String> _tokens =
		Collections.synchronizedSortedMap(new TreeMap<Long, String>());
 
} 
Connect your IDE to all the code out there  Get Codota for Java