public class FactoryBlockPattern
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,com.google.common.base.Predicate<BlockWorldState>> |
symbolMap |
Modifier | Constructor and Description |
---|---|
private |
FactoryBlockPattern() |
Modifier and Type | Method and Description |
---|---|
FactoryBlockPattern |
aisle(java.lang.String... aisle) |
BlockPattern |
build() |
private void |
checkMissingPredicates() |
private com.google.common.base.Predicate<BlockWorldState>[][][] |
makePredicateArray() |
static FactoryBlockPattern |
start() |
FactoryBlockPattern |
where(char symbol,
com.google.common.base.Predicate<BlockWorldState> 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,com.google.common.base.Predicate<BlockWorldState>> symbolMap
private int aisleHeight
private int rowWidth
public FactoryBlockPattern aisle(java.lang.String... aisle)
public static FactoryBlockPattern start()
public FactoryBlockPattern where(char symbol, com.google.common.base.Predicate<BlockWorldState> blockMatcher)
public BlockPattern build()
private com.google.common.base.Predicate<BlockWorldState>[][][] makePredicateArray()
private void checkMissingPredicates()