Interface Key.Builder

  • Enclosing interface:
    Key

    public static interface Key.Builder
    A builder for Key instances. Note that the resulting key is assumed to be a primary key if any of the values is associated with a primary key attribute.
    • Method Detail

      • with

        <T> Key.Builder with​(Attribute<T> attribute,
                             T value)
        Adds the given attribute value to this builder
        Type Parameters:
        T - the value type
        Parameters:
        attribute - the attribute
        value - the value
        Returns:
        this builder instance
      • build

        Key build()
        Builds the key instance
        Returns:
        a new Key instance