Interface NamedType


public interface NamedType

A runtime representation of a fact declaration. Every FactBuilder is eventually turned into an instance of this interface.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The Resolver interface is used to resolve named types based on their declared name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns name of a fact declaration, for example "$customer"
    Type<?>
    Method returns engine's internal Type of a fact declaration
    default boolean
     
  • Method Details

    • getType

      Type<?> getType()

      Method returns engine's internal Type of a fact declaration

      Returns:
      runtime type of fact declaration
    • getName

      String getName()

      Returns name of a fact declaration, for example "$customer"

      Returns:
      name of a fact declaration
    • sameAs

      default boolean sameAs(NamedType other)