All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.grignaak.collections.OrderedMap Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.github.grignaak.collections;

import java.util.Map;

import com.github.grignaak.collections.impl.Beta;

/**
 * A map ordered by keys. This is similar to {@link java.util.NavigableMap} but simpler.
 */
@Beta
public interface OrderedMap extends Map {
    Iterable> descendingEntries();
    Iterable> descendingEntriesBefore(K upperBoundExclusive);
    default Iterable> ascendingEntries() { return entrySet(); }
    Iterable> ascendingEntriesAfter(K lowerBoundExclusive);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy