Interface Field.Builder<T>

  • Type Parameters:
    T - resulting field type
    All Known Implementing Classes:
    FieldMapImpl.Builder
    Enclosing interface:
    Field<T>

    public static interface Field.Builder<T>
    Builder for Fields.
    • Method Detail

      • add

        Field.Builder<T> add​(DeviceUID key,
                             T value)
        Adds an element to the field.
        Parameters:
        key - the neighbor id
        value - the neighbor value
        Returns:
        this builder
      • build

        Field<T> build​(DeviceUID localKey,
                       T localValue)
        Builds a Field.
        Parameters:
        localKey - the local device DeviceUID
        localValue - the local value of the Field
        Returns:
        a Field of the desired type