Interface FabricReadView
public interface FabricReadView
Fabric provided extension of ReadView.
Note: This interface is automatically implemented on ReadView via Mixin and interface injection.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks if thisReadViewcontains data under provided key.default Optional<byte[]> Returns an byte array present in thisReadViewunder provided key.default Optional<long[]> Returns an long array present in thisReadViewunder provided key.default Collection<String> keys()Returns a collection of keys available in thisReadView.
-
Method Details
-
keys
Returns a collection of keys available in thisReadView.- Returns:
- collection of keys or empty list if this
ReadViewis empty.
-
contains
Checks if thisReadViewcontains data under provided key.- Parameters:
key- key to check for- Returns:
- true, when this
ReadViewcontains data under provided key, otherwise false
-
getOptionalLongArray
Returns an long array present in thisReadViewunder provided key.- Parameters:
key- key to check for- Returns:
- long array wrapped in optional if long array is present, empty Optional otherwise
-
getOptionalByteArray
Returns an byte array present in thisReadViewunder provided key.- Parameters:
key- key to check for- Returns:
- byte array wrapped in optional if byte array is present, empty Optional otherwise
-