Interface Encoded

All Known Implementing Classes:
Action, Assignment, Ending, Entity, State, Turn
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Encoded
An encoded object has a unique string of 1's and 0's that uniquely distinguishes it object from others of the same type in the same story world. Encodings are typically produced by the Encoding.encode(Object) method.
Author:
Stephen G. Ware
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string of 1's and 0's that uniquely represents this object among other objects of the same type in the same story world.
  • Method Details

    • getCode

      String getCode()
      Returns a string of 1's and 0's that uniquely represents this object among other objects of the same type in the same story world. Every encoded object of the same type should return a string of the same length, even if it must be padded with 0's.
      Returns:
      a string of 1's and 0's