Class StructureDefinition<T>
java.lang.Object
com.gtnewhorizon.structurelib.structure.StructureDefinition<T>
- All Implemented Interfaces:
IStructureDefinition<T>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <B> StructureDefinition.Builder<B> builder()getChannelDefinition(String channel) Finds a channel definition by identifier.Returns channel definitions declared by this structure.Returns channel definitions explicitly added by the structure builder.getStructureFor(String name) Used internallyMap<String, IStructureElement<T>[]> booleanisContainedInStructure(String name, int offsetA, int offsetB, int offsetC) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IStructureDefinition
build, buildOrHints, check, getChannelData, hints, iterate, survivalBuild, survivalBuild
-
Method Details
-
builder
-
getElements
-
getShapes
-
getStructures
-
getChannelDefinitions
Description copied from interface:IStructureDefinitionReturns channel definitions declared by this structure.- Specified by:
getChannelDefinitionsin interfaceIStructureDefinition<T>- Returns:
- an immutable or otherwise read-only channel collection
-
getExplicitChannelDefinitions
Description copied from interface:IStructureDefinitionReturns channel definitions explicitly added by the structure builder.- Specified by:
getExplicitChannelDefinitionsin interfaceIStructureDefinition<T>- Returns:
- explicitly declared channel definitions
-
getChannelDefinition
Description copied from interface:IStructureDefinitionFinds a channel definition by identifier.- Specified by:
getChannelDefinitionin interfaceIStructureDefinition<T>- Parameters:
channel- channel identifier- Returns:
- channel definition, or
nullwhen it is not declared
-
getStructureFor
Description copied from interface:IStructureDefinitionUsed internallyMight, but is not required, to throw
NoSuchElementExceptionif the given structure piece is not found.- Specified by:
getStructureForin interfaceIStructureDefinition<T>- Parameters:
name- same name as for other methods here- Returns:
- the array of elements to process
-
isContainedInStructure
- Specified by:
isContainedInStructurein interfaceIStructureDefinition<T>
-