Interface Relation.RelationBuilder<K,​V>

Type Parameters:
K - The key's type
V - The value's type
All Superinterfaces:
org.refcodes.mixin.KeyAccessor<K>, org.refcodes.mixin.KeyAccessor.KeyBuilder<K,​Relation.RelationBuilder<K,​V>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K>, org.refcodes.mixin.KeyAccessor.KeyProperty<K>, Relation<K,​V>, org.refcodes.mixin.ValueAccessor<V>, org.refcodes.mixin.ValueAccessor.ValueBuilder<V,​Relation.RelationBuilder<K,​V>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V>, org.refcodes.mixin.ValueAccessor.ValueProperty<V>
All Known Subinterfaces:
Attribute.AttributeBuilder, Property.PropertyBuilder
All Known Implementing Classes:
AttributeImpl.AttributeBuilderImpl, PropertyImpl.PropertyBuilderImpl, RelationImpl.RelationBuilderImpl
Enclosing interface:
Relation<K,​V>

public static interface Relation.RelationBuilder<K,​V>
extends org.refcodes.mixin.KeyAccessor.KeyProperty<K>, org.refcodes.mixin.ValueAccessor.ValueProperty<V>, Relation<K,​V>, org.refcodes.mixin.KeyAccessor.KeyBuilder<K,​Relation.RelationBuilder<K,​V>>, org.refcodes.mixin.ValueAccessor.ValueBuilder<V,​Relation.RelationBuilder<K,​V>>
Adds builder functionality to a Relation.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

    org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,​B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,​B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.struct.Relation

    Relation.RelationBuilder<K,​V>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor

    org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,​B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,​B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
  • Method Summary

    Modifier and Type Method Description
    default Relation.RelationBuilder<K,​V> withKey​(K aKey)
    With key.
    default Relation.RelationBuilder<K,​V> withValue​(V aValue)
    With value.

    Methods inherited from interface org.refcodes.mixin.KeyAccessor

    getKey

    Methods inherited from interface org.refcodes.mixin.KeyAccessor.KeyMutator

    setKey

    Methods inherited from interface org.refcodes.mixin.KeyAccessor.KeyProperty

    letKey

    Methods inherited from interface org.refcodes.mixin.ValueAccessor

    getValue, getValueOr

    Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueMutator

    setValue

    Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty

    letValue
  • Method Details

    • withKey

      default Relation.RelationBuilder<K,​V> withKey​(K aKey)
      With key.
      Specified by:
      withKey in interface org.refcodes.mixin.KeyAccessor.KeyBuilder<K,​V>
      Parameters:
      aKey - the key
      Returns:
      the relation builder
    • withValue

      default Relation.RelationBuilder<K,​V> withValue​(V aValue)
      With value.
      Specified by:
      withValue in interface org.refcodes.mixin.ValueAccessor.ValueBuilder<K,​V>
      Parameters:
      aValue - the value
      Returns:
      the relation builder