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 booleanequals(Object o)TypedFieldImplgetField()TypedValueImplgetValue()TypedValueImpl[]getValues()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TypedFieldValueImpl
public TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl value)
-
TypedFieldValueImpl
public TypedFieldValueImpl(TypedFieldImpl field, TypedValueImpl[] values)
-
-
Method Detail
-
getField
public TypedFieldImpl getField()
- Specified by:
getFieldin interfaceTypedFieldValue- Returns:
- the corresponding TypedFieldImpl
-
getValue
public TypedValueImpl getValue()
- Specified by:
getValuein interfaceTypedFieldValue- Returns:
- the associated value
- Throws:
IllegalArgumentException- if the field is an array
-
getValues
public TypedValueImpl[] getValues()
- Specified by:
getValuesin interfaceTypedFieldValue- Returns:
- the associated values
- Throws:
IllegalArgumentException- if the field is not an array
-
-