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 |
Constructor and Description |
---|
StructureMembers(java.lang.String name)
Deprecated.
use Builder
|
StructureMembers(StructureMembers from)
Deprecated.
use toBuilder().build(false) to make a copy with no data
|
Modifier and Type | Method and Description |
---|---|
void |
addMember(int pos,
StructureMembers.Member m)
Deprecated.
use Builder
|
StructureMembers.Member |
addMember(java.lang.String name,
java.lang.String desc,
java.lang.String units,
DataType dtype,
int[] shape)
Deprecated.
use Builder
|
void |
addMember(StructureMembers.Member m)
Deprecated.
use Builder
|
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.
|
int |
hideMember(StructureMembers.Member m)
Deprecated.
use Builder
|
static StructureMembers.MemberBuilder |
memberBuilder() |
void |
setStructureSize(int structureSize)
Deprecated.
use Builder
|
StructureMembers.Builder |
toBuilder(boolean wantsData)
Turn into a mutable Builder.
|
java.lang.String |
toString() |
@Deprecated public StructureMembers(java.lang.String name)
@Deprecated public StructureMembers(StructureMembers from)
public java.lang.String getName()
@Deprecated public void addMember(StructureMembers.Member m)
@Deprecated public void addMember(int pos, StructureMembers.Member m)
@Deprecated public StructureMembers.Member addMember(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)
@Deprecated public int hideMember(StructureMembers.Member m)
m
- memberpublic int getStructureSize()
@Deprecated public void setStructureSize(int structureSize)
public com.google.common.collect.ImmutableList<StructureMembers.Member> getMembers()
public com.google.common.collect.ImmutableList<java.lang.String> getMemberNames()
public StructureMembers.Member getMember(int index)
index
- of member@Nullable public StructureMembers.Member findMember(java.lang.String memberName)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static StructureMembers.MemberBuilder memberBuilder()
public StructureMembers.Builder toBuilder(boolean wantsData)
public static StructureMembers.Builder builder()