Package com.floragunn.fluent.collections
Interface CheckTable<R,C>
-
- All Known Implementing Classes:
CheckTable.AbstractCheckTable,CheckTable.ArrayCheckTable,CheckTable.SingleCellCheckTable,CheckTable.SingleColumnCheckTable,CheckTable.SingleRowCheckTable,CheckTable.TwoColumnCheckTable
public interface CheckTable<R,C>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCheckTable.AbstractCheckTable<R,C>static classCheckTable.ArrayCheckTable<R,C>static classCheckTable.SingleCellCheckTable<R,C>static classCheckTable.SingleColumnCheckTable<R,C>static classCheckTable.SingleRowCheckTable<R,C>static classCheckTable.TwoColumnCheckTable<R,C>
-
Field Summary
Fields Modifier and Type Field Description static CheckTable<?,?>EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(R row, C column)voidcheckFrom(CheckTable<R,C> other)booleancheckIf(Iterable<R> rows, Predicate<C> columnCheckPredicate)booleancheckIf(Predicate<R> rowCheckPredicate, C column)booleancheckIf(R row, Predicate<C> columnCheckPredicate)booleancontainsCellFor(R row, C column)static <R,C>
CheckTable<R,C>create(Set<R> rows, C column)static <R,C>
CheckTable<R,C>create(Set<R> rows, Set<C> columns)static <R,C>
CheckTable<R,C>create(R row, Set<C> columns)static <R,C>
CheckTable<R,C>empty()ImmutableSet<C>getCheckedColumns(R row)ImmutableSet<R>getCheckedRows(C column)ImmutableSet<C>getColumns()ImmutableSet<C>getCompleteColumns()ImmutableSet<R>getCompleteRows()ImmutableSet<C>getIncompleteColumns()ImmutableSet<R>getIncompleteRows()ImmutableSet<R>getRows()booleanisBlank()booleanisChecked(R row, C column)booleanisColumnComplete(C column)booleanisColumnIncomplete(C column)booleanisComplete()booleanisEmpty()booleanisRowComplete(R row)booleanisRowIncomplete(R row)Iterable<C>iterateCheckedColumns(R row)Iterable<R>iterateCheckedRows(C column)Iterable<C>iterateUncheckedColumns(R row)Iterable<R>iterateUncheckedRows(C column)static StringpadEnd(String string, int width, char paddingChar)StringtoString(String checkedIndicator, String uncheckedIndicator)StringtoTableString()StringtoTableString(String checkedIndicator, String uncheckedIndicator)voiduncheck(R row, C column)voiduncheckAll()voiduncheckIf(Iterable<R> rows, Predicate<C> columnCheckPredicate)voiduncheckIf(Predicate<R> rowCheckPredicate, C column)voiduncheckIf(Predicate<R> rowCheckPredicate, Iterable<C> columns)voiduncheckIf(R row, Predicate<C> columnCheckPredicate)voiduncheckRow(R row)voiduncheckRowIf(Predicate<R> rowCheckPredicate)voiduncheckRowIfPresent(R row)CheckTable<R,C>viewRestrictedToRows(Predicate<R> predicate)CheckTable<R,C>with(CheckTable<R,C> other)
-
-
-
Field Detail
-
EMPTY
static final CheckTable<?,?> EMPTY
-
-
Method Detail
-
create
static <R,C> CheckTable<R,C> create(R row, Set<C> columns)
-
create
static <R,C> CheckTable<R,C> create(Set<R> rows, C column)
-
create
static <R,C> CheckTable<R,C> create(Set<R> rows, Set<C> columns)
-
empty
static <R,C> CheckTable<R,C> empty()
-
checkFrom
void checkFrom(CheckTable<R,C> other)
-
uncheckRow
void uncheckRow(R row)
-
uncheckRowIfPresent
void uncheckRowIfPresent(R row)
-
uncheckAll
void uncheckAll()
-
isRowComplete
boolean isRowComplete(R row)
-
isColumnComplete
boolean isColumnComplete(C column)
-
isRowIncomplete
boolean isRowIncomplete(R row)
-
isColumnIncomplete
boolean isColumnIncomplete(C column)
-
isComplete
boolean isComplete()
-
isBlank
boolean isBlank()
-
toTableString
String toTableString()
-
getRows
ImmutableSet<R> getRows()
-
getColumns
ImmutableSet<C> getColumns()
-
getCompleteRows
ImmutableSet<R> getCompleteRows()
-
getCompleteColumns
ImmutableSet<C> getCompleteColumns()
-
getIncompleteRows
ImmutableSet<R> getIncompleteRows()
-
getIncompleteColumns
ImmutableSet<C> getIncompleteColumns()
-
getCheckedRows
ImmutableSet<R> getCheckedRows(C column)
-
getCheckedColumns
ImmutableSet<C> getCheckedColumns(R row)
-
isEmpty
boolean isEmpty()
-
viewRestrictedToRows
CheckTable<R,C> viewRestrictedToRows(Predicate<R> predicate)
-
with
CheckTable<R,C> with(CheckTable<R,C> other)
-
-