Package org.yamcs.xtce.util
Class AggregateMemberNames
- java.lang.Object
-
- org.yamcs.xtce.util.AggregateMemberNames
-
public class AggregateMemberNames extends Object
Represents a list of aggregate member names.This class maintains a cache of aggregate members names in order to be reused for all the aggregate values with the same type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Stringget(int idx)static AggregateMemberNamesget(String[] names)Factory method that returns the unique object corresponding to the list of names.inthashCode()intindexOf(String name)intsize()StringtoString()
-
-
-
Method Detail
-
indexOf
public int indexOf(String name)
- Parameters:
name-- Returns:
- the index of the name in the list or -1 if it is not part of the list
-
get
public String get(int idx)
-
size
public int size()
- Returns:
- the number of member names in this list
-
get
public static AggregateMemberNames get(String[] names)
Factory method that returns the unique object corresponding to the list of names.- Parameters:
names- - ordered list of names for which an object will be created if not already existing and returned- Returns:
- - the unique object corresponding to the list of names
-
-