Interface PersistentSetBuilder<E>


  • public interface PersistentSetBuilder<E>
    The default interface for the persistent set builder for use with mapDB.
    • Method Detail

      • withName

        PersistentSetBuilder<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
      • withSerializer

        PersistentSetBuilder<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
      • build

        java.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