Interface NestedStorable

All Superinterfaces:
Cloneable, Comparable, Serializable, io.vertx.core.shareddata.Shareable, Storable
All Known Implementing Classes:
NestedObject

public interface NestedStorable extends Storable
Must be implemented by objects that are nested into Storables. Removes the need for implementing id() method.
  • Field Summary

    Fields inherited from interface com.codingchili.core.storage.Storable

    idField
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Get the id of the storable item, used as a key to the map api.

    Methods inherited from interface io.vertx.core.shareddata.Shareable

    copy

    Methods inherited from interface com.codingchili.core.storage.Storable

    compareTo, compareToAttribute
  • Method Details

    • getId

      default String getId()
      Description copied from interface: Storable
      Get the id of the storable item, used as a key to the map api. This field is not included when serializing to JSON. When serializing to json the id must be kept separately.

      instead of implementing this method, to avoid duplicate values in values as keys; implement hashCode based on an unique attribute combination.

      Specified by:
      getId in interface Storable
      Returns:
      an id that is unique to this storable item.