Package org.onosproject.persistence
Interface PersistentSetBuilder<E>
- 
 public interface PersistentSetBuilder<E>The default interface for the persistent set builder for use with mapDB.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<E>build()Validates the set settings and then builds this map in the database.PersistentSetBuilder<E>withName(java.lang.String name)Sets the name of this set.PersistentSetBuilder<E>withSerializer(Serializer serializer)Sets the serializer to be used to serialize this set, this is a required parameter.
 
- 
- 
- 
Method Detail- 
withNamePersistentSetBuilder<E> withName(java.lang.String name) Sets the name of this set.- Parameters:
- name- the string name of this set
- Returns:
- a persistent set builder with the name option now set
 
 - 
withSerializerPersistentSetBuilder<E> withSerializer(Serializer serializer) Sets the serializer to be used to serialize this set, this is a required parameter.- Parameters:
- serializer- the serializer to be used
- Returns:
- a persistent set builder with the serializer set
 
 - 
buildjava.util.Set<E> build() Validates the set settings and then builds this map in the database. Throws an exception if invalid settings are found.- Returns:
- The set that was created
 
 
- 
 
-