All Known Implementing Classes:
AbstractInstance, Evaluation, Input

public interface Instance
  • Method Details Link icon

    • getShort Link icon

      String getShort()
      Returns:
      the 'short' field of the underlying entity. it should uniquely describe this instance^s node
    • getDate Link icon

      @Nullable @Nullable org.joda.time.LocalDate getDate()
    • getChildrenMap Link icon

      com.google.common.collect.Multimap<String,Instance> getChildrenMap()
      Keys are the 'short' field (see getShort()) of an Instance, values are all child instances of this instance
      Returns:
      a map of all children of this node, including thid node itself
    • getRatingData Link icon

      Optional<Object> getRatingData(Entity user)
      Parameters:
      user - a User entity
      Returns:
      an optional rating object (type depending on the type of the underlying node)
    • getUniqueKey Link icon

      String getUniqueKey()
      get a string that uniquely identifies this instance. currently, format is Model-Key.
      Returns:
      the unique key