Top Methods
org.eclipse.collections.api.multimap.ordered

public Interface SortedIterableMultimap<K, V>

extends OrderedIterableMultimap<K, V>
Known Direct Subinterfaces
org.eclipse.collections.api.multimap.sortedbag.SortedBagMultimap, org.eclipse.collections.api.multimap.sortedset.SortedSetMultimap
Imports
java.util.Comparator, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.predicate.Predicate2, org.eclipse.collections.api.multimap.list.ListMultimap, org.eclipse.collections.api.ordered.SortedIterable

Since
5.0

Method Summary

Modifier and TypeMethod and Description
public <V2> ListMultimap<K, V2>
collectValues(Function<? super V, ? extends V2> function)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.collectValues.

Returns a new multimap with the results of applying the specified function on each value of the source multimap.

public Comparator<? super V>
public SortedIterable<V>
get(K key)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.get.

Returns a view of all values associated with the given key.

public SortedIterableMultimap<K, V>
newEmpty()

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.newEmpty.

Creates a new instance of the same implementation type, using the default capacity and growth parameters.

public SortedIterableMultimap<K, V>
rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.rejectKeysMultiValues.

Returns all elements of the source multimap that don't satisfy the predicate.

public SortedIterableMultimap<K, V>
rejectKeysValues(Predicate2<? super K, ? super V> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.rejectKeysValues.

Returns all elements of the source multimap that don't satisfy the predicate.

public SortedIterableMultimap<K, V>
selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.selectKeysMultiValues.

Returns all elements of the source multimap that satisfies the predicate.

public SortedIterableMultimap<K, V>
selectKeysValues(Predicate2<? super K, ? super V> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.selectKeysValues.

Returns all elements of the source multimap that satisfies the predicate.

Inherited from org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap:
collectKeyMultiValuescollectKeysValues

Method Detail

collectValuesback to summary
public <V2> ListMultimap<K, V2> collectValues(Function<? super V, ? extends V2> function)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.collectValues.

Doc from org.eclipse.collections.api.multimap.Multimap.collectValues.

Returns a new multimap with the results of applying the specified function on each value of the source multimap. This method is also commonly called transform or map.

e.g.
return multimap.collectValues(new Function<Person, String>()
{
    public String valueOf(Person person)
    {
        return person.getLastName();
    }
});
Annotations
@Override
comparatorback to summary
public Comparator<? super V> comparator()
getback to summary
public SortedIterable<V> get(K key)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.get.

Doc from org.eclipse.collections.api.multimap.Multimap.get.

Returns a view of all values associated with the given key.

If the given key does not exist, an empty RichIterable is returned.

Annotations
@Override
newEmptyback to summary
public SortedIterableMultimap<K, V> newEmpty()

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.newEmpty.

Doc from org.eclipse.collections.api.multimap.Multimap.newEmpty.

Creates a new instance of the same implementation type, using the default capacity and growth parameters.

Annotations
@Override
rejectKeysMultiValuesback to summary
public SortedIterableMultimap<K, V> rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.rejectKeysMultiValues.

Doc from org.eclipse.collections.api.multimap.Multimap.rejectKeysMultiValues.

Returns all elements of the source multimap that don't satisfy the predicate.

e.g.
return multimap.rejectKeysMultiValues(new Predicate2<Integer, Iterable<Person>>()
{
    public boolean accept(Integer age, Iterable<Person> values)
    {
        return (age >= 18)
                 && ((RichIterable<Person>)values.size() >= 2);
    }
});
Annotations
@Override
rejectKeysValuesback to summary
public SortedIterableMultimap<K, V> rejectKeysValues(Predicate2<? super K, ? super V> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.rejectKeysValues.

Doc from org.eclipse.collections.api.multimap.Multimap.rejectKeysValues.

Returns all elements of the source multimap that don't satisfy the predicate.

e.g.
return multimap.rejectKeysValues(new Predicate2<Integer, Person>()
{
    public boolean accept(Integer age, Person person)
    {
        return (age >= 18)
                 && (person.getAddress().getCity().equals("Metuchen"));
    }
});
Annotations
@Override
selectKeysMultiValuesback to summary
public SortedIterableMultimap<K, V> selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.selectKeysMultiValues.

Doc from org.eclipse.collections.api.multimap.Multimap.selectKeysMultiValues.

Returns all elements of the source multimap that satisfies the predicate. This method is also commonly called filter.

e.g.
return multimap.selectKeysMultiValues(new Predicate2<Integer, Iterable<Person>>()
{
    public boolean accept(Integer age, Iterable<Person> values)
    {
        return (age >= 18)
                 && ((RichIterable<Person>)values.size() >= 2);
    }
});
Annotations
@Override
selectKeysValuesback to summary
public SortedIterableMultimap<K, V> selectKeysValues(Predicate2<? super K, ? super V> predicate)

Redeclares org.eclipse.collections.api.multimap.ordered.OrderedIterableMultimap.selectKeysValues.

Doc from org.eclipse.collections.api.multimap.Multimap.selectKeysValues.

Returns all elements of the source multimap that satisfies the predicate. This method is also commonly called filter.

e.g.
return multimap.selectKeysValues(new Predicate2<Integer, Person>()
{
    public boolean accept(Integer age, Person person)
    {
        return (age >= 18)
                 && (person.getAddress().getCity().equals("Metuchen"));
    }
});
Annotations
@Override