org.omnaest.utils.structure.map
Class MapJoiner

java.lang.Object
  extended by org.omnaest.utils.structure.map.MapJoiner

public class MapJoiner
extends Object

A MapJoiner allows to join two or multiple Map instances by their keys. Or additionally with List instances in combination with a KeyExtractor.

Author:
Omnaest
See Also:
MapUtils.joiner()

Nested Class Summary
static interface MapJoiner.From<K,VL>
           
static class MapJoiner.JoinedValue<V1,V2>
          Similar to MapJoiner.JoinedValue special for a Map join result containing both values for a shared key
static interface MapJoiner.JoinResult<K,VL,VR>
           
static interface MapJoiner.Predicate<K,VL,VR>
           
static class MapJoiner.PredicateIncludingKeySet<K,VL,VR>
          MapJoiner.Predicate which uses a given Set of keys to return true for any result value which has a key contained within that given Set.
 
Constructor Summary
MapJoiner()
           
 
Method Summary
<K,VL> MapJoiner.From<K,VL>
from(KeyExtractor<K,VL> keyExtractor, Iterable<VL> iterable)
           
<K,VL> MapJoiner.From<K,VL>
from(Map<K,VL> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapJoiner

public MapJoiner()
Method Detail

from

public <K,VL> MapJoiner.From<K,VL> from(Map<K,VL> map)
Parameters:
map - Map
Returns:
MapJoiner.From
See Also:
MapJoiner

from

public <K,VL> MapJoiner.From<K,VL> from(KeyExtractor<K,VL> keyExtractor,
                                        Iterable<VL> iterable)
Parameters:
keyExtractor - KeyExtractor
iterable - Iterable
Returns:
MapJoiner.From
See Also:
MapJoiner


Copyright © 2013. All Rights Reserved.