Class TypedFieldValueImpl
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.writer.TypedFieldValueImpl
-
- All Implemented Interfaces:
TypedFieldValue
public final class TypedFieldValueImpl extends Object implements TypedFieldValue
-
-
Constructor Summary
Constructors Constructor Description TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl value)
TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
TypedFieldImpl
getField()
TypedValueImpl
getValue()
TypedValueImpl[]
getValues()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TypedFieldValueImpl
public TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl value)
-
TypedFieldValueImpl
public TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl[] values)
-
-
Method Detail
-
getField
public TypedFieldImpl getField()
- Specified by:
getField
in interfaceTypedFieldValue
- Returns:
- the corresponding TypedFieldImpl
-
getValue
public TypedValueImpl getValue()
- Specified by:
getValue
in interfaceTypedFieldValue
- Returns:
- the associated value
- Throws:
IllegalArgumentException
- if the field is an array
-
getValues
public TypedValueImpl[] getValues()
- Specified by:
getValues
in interfaceTypedFieldValue
- Returns:
- the associated values
- Throws:
IllegalArgumentException
- if the field is not an array
-
-