public class EvioDictionaryEntry
extends java.lang.Object
Constructor and Description |
---|
EvioDictionaryEntry(java.lang.Integer tag,
java.lang.Integer num)
Constructor.
|
EvioDictionaryEntry(java.lang.Integer tag,
java.lang.Integer num,
java.lang.Integer tagEnd,
java.lang.String type)
Constructor.
|
EvioDictionaryEntry(java.lang.Integer tag,
java.lang.Integer num,
java.lang.Integer tagEnd,
java.lang.String type,
java.lang.String description,
java.lang.String format)
Constructor containing actual implementation.
|
EvioDictionaryEntry(java.lang.Integer tag,
java.lang.Integer num,
java.lang.Integer tagEnd,
java.lang.String type,
java.lang.String description,
java.lang.String format,
EvioDictionaryEntry parentEntry)
Constructor containing actual implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getDescription()
Get the CompositeData's description.
|
org.jlab.coda.jevio.EvioDictionaryEntryType |
getEntryType()
Get this entry's type.
|
java.lang.String |
getFormat()
Get the CompositeData's format.
|
java.lang.Integer |
getNum()
Get the num value.
|
EvioDictionaryEntry |
getParentEntry()
Get the parent container's dictionary entry.
|
java.lang.Integer |
getTag()
Get the tag value.
|
java.lang.Integer |
getTagEnd()
Get the tagEnd value (upper end of a tag range).
|
DataType |
getType()
Get the data's type.
|
int |
hashCode()
.
|
boolean |
inRange(EvioDictionaryEntry entry)
Is the given dictionary entry's tag within the specified range
(inclusive) of this dictionary entry?
|
boolean |
inRange(int tagArg)
Is the given tag within the specified range (inclusive) of this dictionary entry?
|
java.lang.String |
toString() |
public EvioDictionaryEntry(java.lang.Integer tag, java.lang.Integer num)
tag
- tag value of evio container.num
- num value of evio container.public EvioDictionaryEntry(java.lang.Integer tag, java.lang.Integer num, java.lang.Integer tagEnd, java.lang.String type)
tag
- tag value of evio container.num
- num value of evio container.tagEnd
- if > 0, this is the high end of a tag range.type
- type of data in evio container which may be (case-independent):
unknown32 DataType.UNKNOWN32
...
composite DataType.COMPOSITE
.public EvioDictionaryEntry(java.lang.Integer tag, java.lang.Integer num, java.lang.Integer tagEnd, java.lang.String type, java.lang.String description, java.lang.String format)
tag
- tag value or low end of a tag range of an evio container.num
- num value of evio container.tagEnd
- if > 0, this is the high end of a tag range.type
- type of data in evio container which may be (case-independent):
unknown32 DataType.UNKNOWN32
...
composite DataType.COMPOSITE
.description
- description of CompositeDataformat
- format of CompositeDatapublic EvioDictionaryEntry(java.lang.Integer tag, java.lang.Integer num, java.lang.Integer tagEnd, java.lang.String type, java.lang.String description, java.lang.String format, EvioDictionaryEntry parentEntry)
tag
- tag value or low end of a tag range of an evio container.tagEnd
- if > 0, this is the high end of a tag range.num
- num value of evio container.type
- type of data in evio container which may be (case-independent):
unknown32 DataType.UNKNOWN32
,
int32 DataType.INT32
,
uint32 DataType.UINT32
,
float32DataType.FLOAT32
,
double64 DataType.DOUBLE64
,
charstar8 DataType.CHARSTAR8
,
char8 DataType.CHAR8
,
uchar8 DataType.UCHAR8
,
short16DataType.SHORT16
,
ushort16 DataType.USHORT16
,
long64 DataType.LONG64
,
ulong64 DataType.ULONG64
,
tagsegment DataType.TAGSEGMENT
,
segment DataType.SEGMENT
.
alsosegment DataType.ALSOSEGMENT
,
bank DataType.BANK
,
alsobank DataType.ALSOBANK
, or
composite DataType.COMPOSITE
,description
- description of CompositeDataformat
- format of CompositeDataparentEntry
- parent dictionary entry objectpublic boolean inRange(int tagArg)
tagArg
- tag to compare with rangefalse
if tag not in range, else true
.public boolean inRange(EvioDictionaryEntry entry)
entry
- dictionary entry to compare with rangefalse
if tag not in range, else true
.public int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.Integer getTag()
public final java.lang.Integer getTagEnd()
public final java.lang.Integer getNum()
public final DataType getType()
public final java.lang.String getFormat()
public final java.lang.String getDescription()
public org.jlab.coda.jevio.EvioDictionaryEntryType getEntryType()
public EvioDictionaryEntry getParentEntry()