Package ucar.ma2
Class StructureMembers
java.lang.Object
ucar.ma2.StructureMembers
A Collection of members contained in a StructureData.
TODO make immutable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for StructureMembersstatic final classA member of a StructureData.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic StructureMembers.Builderbuilder()Create an StructureMembers builder.booleanfindMember(String memberName) Find the member by its name.getMember(int index) Get the index-th membercom.google.common.collect.ImmutableList<String>Get the names of the members.com.google.common.collect.ImmutableList<StructureMembers.Member>Get the list of Member objects.getName()Get the StructureMembers' name.intGet the total size of the Structure in bytes.toBuilder(boolean wantsData) Turn into a mutable Builder.toString()
-
Method Details
-
getName
Get the StructureMembers' name. -
getStructureSize
public int getStructureSize()Get the total size of the Structure in bytes.- Returns:
- the total size of the Structure in bytes.
-
getMembers
Get the list of Member objects. -
getMemberNames
Get the names of the members. -
getMember
Get the index-th member- Parameters:
index- of member- Returns:
- Member
-
findMember
Find the member by its name. -
toString
-
equals
-
memberBuilder
-
toBuilder
Turn into a mutable Builder. Can use toBuilder().build(wantsData) to copy. -
builder
Create an StructureMembers builder.
-