Package ucar.ma2

Class StructureMembers


  • public final class StructureMembers
    extends Object
    A Collection of members contained in a StructureData. TODO make immutable
    • 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
      • toBuilder

        public StructureMembers.Builder toBuilder​(boolean wantsData)
        Turn into a mutable Builder. Can use toBuilder().build(wantsData) to copy.