Package org.patternfly.style
Class BreakpointCollector<V>
- java.lang.Object
-
- org.patternfly.style.BreakpointCollector<V>
-
- Type Parameters:
V- the type of the values to be collected
- All Implemented Interfaces:
Collector<Tuple<Breakpoint,V>,StringBuilder,String>
public class BreakpointCollector<V> extends Object implements Collector<Tuple<Breakpoint,V>,StringBuilder,String>
TheBreakpointCollectorcollects tuples ofBreakpointand a generic valueVas CSS modifier classes and returns the collected data as aString. SeeBreakpointsfor details how the CSS modifier classes are built.The joining methods accept a string function that can be used to further modify the value. See the examples below for details.
- See Also:
Breakpoints,Collector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<StringBuilder,Tuple<Breakpoint,V>>accumulator()Set<Collector.Characteristics>characteristics()BinaryOperator<StringBuilder>combiner()Function<StringBuilder,String>finisher()static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String>modifiers()Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated modifiers.static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String>modifiers(Function<V,String> stringValue)Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated modifiers.Supplier<StringBuilder>supplier()static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String>verticalModifiers()Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated vertical modifiers.static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String>verticalModifiers(Function<V,String> stringValue)Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated vertical modifiers.
-
-
-
Method Detail
-
modifiers
public static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String> modifiers()
Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated modifiers.- Type Parameters:
V- the type of the value in theTuple
-
modifiers
public static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String> modifiers(Function<V,String> stringValue)
Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated modifiers.- Type Parameters:
V- the type of the value in theTuple- Parameters:
stringValue- a function that converts the value of theTupleto aString
-
verticalModifiers
public static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String> verticalModifiers()
Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated vertical modifiers.- Type Parameters:
V- the type of the value in theTuple
-
verticalModifiers
public static <V> Collector<Tuple<Breakpoint,V>,StringBuilder,String> verticalModifiers(Function<V,String> stringValue)
Returns a collector that accumulatesTuple<Breakpoint, V>objects into aStringBuilderand produces aStringrepresentation of the accumulated vertical modifiers.- Type Parameters:
V- the type of the value in theTuple- Parameters:
stringValue- a function that converts the value of theTupleto aString
-
supplier
public Supplier<StringBuilder> supplier()
- Specified by:
supplierin interfaceCollector<Tuple<Breakpoint,V>,StringBuilder,String>
-
accumulator
public BiConsumer<StringBuilder,Tuple<Breakpoint,V>> accumulator()
- Specified by:
accumulatorin interfaceCollector<Tuple<Breakpoint,V>,StringBuilder,String>
-
combiner
public BinaryOperator<StringBuilder> combiner()
- Specified by:
combinerin interfaceCollector<Tuple<Breakpoint,V>,StringBuilder,String>
-
finisher
public Function<StringBuilder,String> finisher()
- Specified by:
finisherin interfaceCollector<Tuple<Breakpoint,V>,StringBuilder,String>
-
characteristics
public Set<Collector.Characteristics> characteristics()
- Specified by:
characteristicsin interfaceCollector<Tuple<Breakpoint,V>,StringBuilder,String>
-
-