Interface FieldsValueMap<E extends EntityType<E>>

    • Method Detail

      • containsField

        <T> boolean containsField​(EntityField<E,​T> field)
        Returns true is the map has a value for the given field
      • get

        <T> T get​(EntityField<E,​T> field)
        Returns the value of the specified field.
        Type Parameters:
        T - type of the field
        Parameters:
        field - field to query
        Returns:
        the value of the field. Can be null.
        Throws:
        java.lang.RuntimeException - if the field is not present in the map
      • safeGet

        default <T> Triptional<T> safeGet​(EntityField<E,​T> field)
        Type Parameters:
        T - the type of the value in the field
        Parameters:
        field - field whose value should be fetched
        Returns:
        the field value if not-null; or Triptional.nullInstance() if null; or Triptional.absent() if the field doesn't exist