Package org.protelis.lang.datatype.impl
Class FieldMapImpl.Builder<T>
- java.lang.Object
-
- org.protelis.lang.datatype.impl.FieldMapImpl.Builder<T>
-
- Type Parameters:
T- field type
- All Implemented Interfaces:
Field.Builder<T>
- Enclosing class:
- FieldMapImpl<T>
public static final class FieldMapImpl.Builder<T> extends java.lang.Object implements Field.Builder<T>
Builder for an immutable field.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field.Builder<T>add(DeviceUID key, T value)Adds an element to the field.Field<T>build(DeviceUID localKey, T localValue)Builds aField.
-
-
-
Method Detail
-
add
public Field.Builder<T> add(DeviceUID key, T value)
Description copied from interface:Field.BuilderAdds an element to the field.- Specified by:
addin interfaceField.Builder<T>- Parameters:
key- the neighbor idvalue- the neighbor value- Returns:
- this builder
-
-