Interface Subclassification<K>


public interface Subclassification<K>
Typeclass which describes a classification hierarchy. Observe the contract between isEqual and isSubclass!
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEqual(K x, K y)
    True if and only if x and y are of the same class.
    boolean
    isSubclass(K x, K y)
    True if and only if x is a subclass of y; equal classes must be considered sub-classes!
  • Method Details

    • isEqual

      boolean isEqual(K x, K y)
      True if and only if x and y are of the same class.
    • isSubclass

      boolean isSubclass(K x, K y)
      True if and only if x is a subclass of y; equal classes must be considered sub-classes!