Code example for SortedMultiset

Methods: tailMultiset

0
      } 
 
      @Override 
      <E> SortedMultiset<E> subMultiset(SortedMultiset<E> multiset, List<Entry<E>> entries,
          int targetEntry) {
        return multiset.tailMultiset(entries.get(targetEntry).getElement(), CLOSED); 
      } 
    }, 
    TAIL_OPEN {
      @Override 
      <E> List<Entry<E>> expectedEntries(int targetEntry, List<Entry<E>> entries) {
        return entries.subList(targetEntry + 1, entries.size()); 
      } 
 
      @Override 
      <E> SortedMultiset<E> subMultiset(SortedMultiset<E> multiset, List<Entry<E>> entries,
          int targetEntry) {
        return multiset.tailMultiset(entries.get(targetEntry).getElement(), OPEN); 
      } 
    },