Interface NestedStorable

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

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

  • Method Summary

    Modifier and Type
    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


    Methods inherited from interface

    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
      an id that is unique to this storable item.