Interface RecordPointer
-
public interface RecordPointer
Represents a extraction logic from a path (jsonpointer) for records.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetValue(Record target, Class<T> type)Enables to extract a value from a record.
-
-
-
Method Detail
-
getValue
<T> T getValue(Record target, Class<T> type)
Enables to extract a value from a record.- Type Parameters:
T- the extracted type.- Parameters:
target- the record to use as base.type- the expected type to extract.- Returns:
- the value extracted from record.
- Throws:
IllegalArgumentException- if the value does not exist.
-
-