Interface StorageType

All Superinterfaces:
Comparable<StorageType>, io.hotmoka.marshalling.api.Marshallable
All Known Subinterfaces:
BasicType, ClassType

public interface StorageType extends io.hotmoka.marshalling.api.Marshallable, Comparable<StorageType>
A type that can be used in the store of a Hotmoka node.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compares this storage type with another.
    boolean
    equals(Object other)
     
    Yields the fully-qualified name of this type.
    int
     
    boolean
    Determines if this type is eager.
     

    Methods inherited from interface io.hotmoka.marshalling.api.Marshallable

    into, size, toByteArray
  • Method Details

    • getName

      String getName()
      Yields the fully-qualified name of this type.
      Returns:
      the fully-qualified name
    • compareTo

      int compareTo(StorageType other)
      Compares this storage type with another. Puts first basic types, by name, then class types ordered wrt class name.
      Specified by:
      compareTo in interface Comparable<StorageType>
      Parameters:
      other - the other type
      Returns:
      negative if this comes first, positive if other comes first, 0 if they are equal
    • isEager

      boolean isEager()
      Determines if this type is eager.
      Returns:
      true if and only if this type is eager
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      String toString()
      Overrides:
      toString in class Object