public abstract class Lists
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Lists.Appender |
static class |
Lists.DelayedValue
Basically similar to a Value, but with some non-pure function (that need
to be evaluated at execution time) in it.
|
static class |
Lists.Discarder |
static class |
Lists.DiscarderByIndex |
static class |
Lists.Literal |
static class |
Lists.Marker
A marker for List values and IN relations
|
static class |
Lists.Prepender |
static class |
Lists.Setter |
static class |
Lists.SetterByIndex |
static class |
Lists.Value |
Modifier and Type | Method and Description |
---|---|
static <T> AbstractType<?> |
getExactListTypeIfKnown(java.util.List<T> items,
java.util.function.Function<T,AbstractType<?>> mapper)
Returns the exact ListType from the items if it can be known.
|
static ColumnSpecification |
indexSpecOf(ColumnSpecification column) |
static <T> java.lang.String |
listToString(java.lang.Iterable<T> items,
java.util.function.Function<T,java.lang.String> mapper)
Create a
String representation of the list from the specified items associated to
the list elements. |
static java.lang.String |
listToString(java.util.List<?> elements)
Create a
String representation of the list containing the specified elements. |
static AssignmentTestable.TestResult |
testListAssignment(ColumnSpecification receiver,
java.util.List<? extends AssignmentTestable> elements)
Tests that the list with the specified elements can be assigned to the specified column.
|
static ColumnSpecification |
valueSpecOf(ColumnSpecification column) |
public static ColumnSpecification indexSpecOf(ColumnSpecification column)
public static ColumnSpecification valueSpecOf(ColumnSpecification column)
public static AssignmentTestable.TestResult testListAssignment(ColumnSpecification receiver, java.util.List<? extends AssignmentTestable> elements)
receiver
- the receiving columnelements
- the list elementspublic static java.lang.String listToString(java.util.List<?> elements)
String
representation of the list containing the specified elements.elements
- the list elementsString
representation of the listpublic static <T> java.lang.String listToString(java.lang.Iterable<T> items, java.util.function.Function<T,java.lang.String> mapper)
String
representation of the list from the specified items associated to
the list elements.items
- items associated to the list elementsmapper
- the mapper used to map the items to the String
representation of the list elementsString
representation of the listpublic static <T> AbstractType<?> getExactListTypeIfKnown(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
items
- the items mapped to the list elementsmapper
- the mapper used to retrieve the element types from the itemsnull
Copyright © 2009- The Apache Software Foundation