public final class StructureMembers
extends java.lang.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.
|
boolean |
equals(java.lang.Object o) |
StructureMembers.Member |
findMember(java.lang.String memberName)
Find the member by its name.
|
StructureMembers.Member |
getMember(int index)
Get the index-th member
|
com.google.common.collect.ImmutableList<java.lang.String> |
getMemberNames()
Get the names of the members.
|
com.google.common.collect.ImmutableList<StructureMembers.Member> |
getMembers()
Get the list of Member objects.
|
java.lang.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.
|
java.lang.String |
toString() |
public static StructureMembers.Builder builder()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@Nullable public StructureMembers.Member findMember(java.lang.String memberName)
public StructureMembers.Member getMember(int index)
index
- of memberpublic com.google.common.collect.ImmutableList<java.lang.String> getMemberNames()
public com.google.common.collect.ImmutableList<StructureMembers.Member> getMembers()
public java.lang.String getName()
public int getStructureSize()
public static StructureMembers.MemberBuilder memberBuilder()
public StructureMembers.Builder toBuilder(boolean wantsData)
public java.lang.String toString()
toString
in class java.lang.Object