public class BlockPatternBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
aisleHeight |
private static com.google.common.base.Joiner |
COMMA_JOIN |
private java.util.List<java.lang.String[]> |
depth |
private int |
rowWidth |
private java.util.Map<java.lang.Character,java.util.function.Predicate<CachedBlockInfo>> |
symbolMap |
Modifier | Constructor and Description |
---|---|
private |
BlockPatternBuilder() |
Modifier and Type | Method and Description |
---|---|
BlockPatternBuilder |
aisle(java.lang.String... aisle) |
BlockPattern |
build() |
private void |
checkMissingPredicates() |
private java.util.function.Predicate<CachedBlockInfo>[][][] |
makePredicateArray() |
static BlockPatternBuilder |
start() |
BlockPatternBuilder |
where(char symbol,
java.util.function.Predicate<CachedBlockInfo> blockMatcher) |
private static final com.google.common.base.Joiner COMMA_JOIN
private final java.util.List<java.lang.String[]> depth
private final java.util.Map<java.lang.Character,java.util.function.Predicate<CachedBlockInfo>> symbolMap
private int aisleHeight
private int rowWidth
public BlockPatternBuilder aisle(java.lang.String... aisle)
public static BlockPatternBuilder start()
public BlockPatternBuilder where(char symbol, java.util.function.Predicate<CachedBlockInfo> blockMatcher)
public BlockPattern build()
private java.util.function.Predicate<CachedBlockInfo>[][][] makePredicateArray()
private void checkMissingPredicates()