Package org.protelis.lang.datatype
Interface Field.Builder<T>
-
- Type Parameters:
T- resulting field type
- All Known Implementing Classes:
FieldMapImpl.Builder
public static interface Field.Builder<T>Builder for Fields.
-
-
Method Summary
All Methods Instance Methods Abstract 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
Field.Builder<T> add(DeviceUID key, T value)
Adds an element to the field.- Parameters:
key- the neighbor idvalue- the neighbor value- Returns:
- this builder
-
-