Package ucar.ma2
Class StructureMembers
- java.lang.Object
-
- ucar.ma2.StructureMembers
-
public final class StructureMembers extends Object
A Collection of members contained in a StructureData. TODO make immutable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructureMembers.Builder
A builder for StructureMembersstatic class
StructureMembers.Member
A member of a StructureData.static class
StructureMembers.MemberBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StructureMembers.Builder
builder()
Create an StructureMembers builder.boolean
equals(Object o)
StructureMembers.Member
findMember(String memberName)
Find the member by its name.StructureMembers.Member
getMember(int index)
Get the index-th membercom.google.common.collect.ImmutableList<String>
getMemberNames()
Get the names of the members.com.google.common.collect.ImmutableList<StructureMembers.Member>
getMembers()
Get the list of Member objects.String
getName()
Get the StructureMembers' name.int
getStructureSize()
Get the total size of the Structure in bytes.static StructureMembers.MemberBuilder
memberBuilder()
StructureMembers.Builder
toBuilder(boolean wantsData)
Turn into a mutable Builder.String
toString()
-
-
-
Method Detail
-
getName
public String 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
public com.google.common.collect.ImmutableList<StructureMembers.Member> getMembers()
Get the list of Member objects.
-
getMemberNames
public com.google.common.collect.ImmutableList<String> getMemberNames()
Get the names of the members.
-
getMember
public StructureMembers.Member getMember(int index)
Get the index-th member- Parameters:
index
- of member- Returns:
- Member
-
findMember
@Nullable public StructureMembers.Member findMember(String memberName)
Find the member by its name.
-
memberBuilder
public static StructureMembers.MemberBuilder memberBuilder()
-
toBuilder
public StructureMembers.Builder toBuilder(boolean wantsData)
Turn into a mutable Builder. Can use toBuilder().build(wantsData) to copy.
-
builder
public static StructureMembers.Builder builder()
Create an StructureMembers builder.
-
-