Code example for SortedMap

Methods: isEmpty

0
    public E get(Long key) {
        return values.get(key);
    } 
 
    public boolean isEmpty() { 
        return values.isEmpty();
    } 
 
    public void put(Long key, E e) {
        values.put(key, e);
    } 
     
    public void remove(Long key){
        values.remove(key);
    } 
 
    public Circle<E> tail(Long key) {
        return new SortedCircle<E>(values.tailMap(key));
    } 
 
}