public final class StructureMembers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StructureMembers.Builder
A builder for StructureMembers
|
static class |
StructureMembers.Member
A member of a StructureData.
|
static class |
StructureMembers.MemberBuilder |
Modifier and Type | Method and Description |
---|---|
static StructureMembers.Builder |
builder()
Create an StructureMembers builder.
|
StructureMembers.Member |
findMember(String memberName)
Find the member by its name.
|
StructureMembers.Member |
getMember(int index)
Get the index-th member
|
com.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.
|
StructureMembers.Builder |
toBuilder(boolean wantsData)
Turn into a mutable Builder.
|
String |
toString() |
public static StructureMembers.Builder builder()
@Nullable public StructureMembers.Member findMember(String memberName)
public StructureMembers.Member getMember(int index)
index
- of memberpublic com.google.common.collect.ImmutableList<String> getMemberNames()
public com.google.common.collect.ImmutableList<StructureMembers.Member> getMembers()
public String getName()
public int getStructureSize()
public StructureMembers.Builder toBuilder(boolean wantsData)