public abstract class Sets
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Sets.Adder |
static class |
Sets.DelayedValue |
static class |
Sets.Discarder |
static class |
Sets.ElementDiscarder |
static class |
Sets.Literal |
static class |
Sets.Marker |
static class |
Sets.Setter |
static class |
Sets.Value |
Modifier and Type | Method and Description |
---|---|
static <T> AbstractType<?> |
getExactSetTypeIfKnown(java.util.List<T> items,
java.util.function.Function<T,AbstractType<?>> mapper)
Returns the exact SetType from the items if it can be known.
|
static <T> java.lang.String |
setToString(java.lang.Iterable<T> items,
java.util.function.Function<T,java.lang.String> mapper)
Create a
String representation of the set from the specified items associated to
the set elements. |
static java.lang.String |
setToString(java.util.List<?> elements)
Create a
String representation of the set containing the specified elements. |
static AssignmentTestable.TestResult |
testSetAssignment(ColumnSpecification receiver,
java.util.List<? extends AssignmentTestable> elements)
Tests that the set with the specified elements can be assigned to the specified column.
|
static ColumnSpecification |
valueSpecOf(ColumnSpecification column) |
public static ColumnSpecification valueSpecOf(ColumnSpecification column)
public static AssignmentTestable.TestResult testSetAssignment(ColumnSpecification receiver, java.util.List<? extends AssignmentTestable> elements)
receiver
- the receiving columnelements
- the set elementspublic static java.lang.String setToString(java.util.List<?> elements)
String
representation of the set containing the specified elements.elements
- the set elementsString
representation of the setpublic static <T> java.lang.String setToString(java.lang.Iterable<T> items, java.util.function.Function<T,java.lang.String> mapper)
String
representation of the set from the specified items associated to
the set elements.items
- items associated to the set elementsmapper
- the mapper used to map the items to the String
representation of the set elementsString
representation of the setpublic static <T> AbstractType<?> getExactSetTypeIfKnown(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
items
- the items mapped to the set elementsmapper
- the mapper used to retrieve the element types from the itemsnull
Copyright © 2009- The Apache Software Foundation