Uses of Interface
no.digipost.tuple.ViewableAsTuple
-
Packages that use ViewableAsTuple Package Description no.digipost no.digipost.collection no.digipost.tuple no.digipost.util -
-
Uses of ViewableAsTuple in no.digipost
Methods in no.digipost that return types with arguments of type ViewableAsTuple Modifier and Type Method Description static <T1,T2>
Collector<ViewableAsTuple<T1,Optional<T2>>,?,Map<T1,List<T2>>>DiggCollectors. toMultimap()A multimap maps from keys to lists, and this collector will arrangetuplesby putting each distinctfirst tuple-elementas keys of the resulting map, mapping them to aList, and adding eachsecond tuple-elementto the list.static <T1,T2>
Collector<ViewableAsTuple<T1,Optional<T2>>,?,Optional<Tuple<T1,List<T2>>>>DiggCollectors. toMultituple()A multituple is similar to a multimap in that it consists of onefirstvalue and a List of values as thesecondvalue, and this collector will collecttupleswhere it is expected that all the first tuple-elements are equal, and re-arrange them by putting the distinct first element into a new Tuple, and collate each of the second elements into a new List which is set as the second element of the new Tuple.static <T1,T2>
Collector<ViewableAsTuple<T1,Optional<T2>>,?,Optional<Tuple<T1,List<T2>>>>DiggCollectors. toMultitupleOrThrowIfNonDistinct(BiFunction<? super Tuple<T1,List<T2>>,? super Tuple<T1,Optional<T2>>,? extends RuntimeException> exceptionOnNonDistinctFirstElement)A multituple is similar to a multimap in that it consists of onefirstvalue and a List of values as thesecondvalue, and this collector will collecttupleswhere it is expected that all the first tuple-elements are equal, and re-arrange them by putting the distinct first element into a new Tuple, and collate each of the second elements into a new List which is set as the second element of the new Tuple. -
Uses of ViewableAsTuple in no.digipost.collection
Methods in no.digipost.collection that return types with arguments of type ViewableAsTuple Modifier and Type Method Description BiConsumer<no.digipost.collection.MultitupleBuilder<T1,T2>,ViewableAsTuple<T1,Optional<T2>>>EnforceDistinctFirstTupleElementCollector. accumulator() -
Uses of ViewableAsTuple in no.digipost.tuple
Subinterfaces of ViewableAsTuple in no.digipost.tuple Modifier and Type Interface Description interfaceTuple<T1,T2>A tuple is a simple composition of two arbitrary values (objects). -
Uses of ViewableAsTuple in no.digipost.util
Methods in no.digipost.util with parameters of type ViewableAsTuple Modifier and Type Method Description <V> AttributesMap.BuilderAttributesMap.Builder. and(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue)Add an attribute coupled with a value.static <V> AttributesMap.BuilderAttributesMap. with(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue, AttributesMap.Config... configSwitches)
-