Class MapImmutableProperties.Builder

  • All Implemented Interfaces:
    io.annot8.api.helpers.builders.WithFromBuilder<io.annot8.api.properties.ImmutableProperties.Builder,​io.annot8.api.properties.Properties>, io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>, io.annot8.api.helpers.builders.WithSave<io.annot8.api.properties.ImmutableProperties>, io.annot8.api.properties.ImmutableProperties.Builder
    Enclosing class:
    MapImmutableProperties

    public static class MapImmutableProperties.Builder
    extends Object
    implements io.annot8.api.properties.ImmutableProperties.Builder
    AbstractContentBuilder class for InMemoryImmutableProperties
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • from

        public io.annot8.api.properties.ImmutableProperties.Builder from​(io.annot8.api.properties.Properties from)
        Specified by:
        from in interface io.annot8.api.helpers.builders.WithFromBuilder<io.annot8.api.properties.ImmutableProperties.Builder,​io.annot8.api.properties.Properties>
      • withProperty

        public io.annot8.api.properties.ImmutableProperties.Builder withProperty​(String key,
                                                                                 Object value)
        Specified by:
        withProperty in interface io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>
      • withPropertyIfPresent

        public io.annot8.api.properties.ImmutableProperties.Builder withPropertyIfPresent​(String key,
                                                                                          Optional<?> value)
        Specified by:
        withPropertyIfPresent in interface io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>
      • withoutProperty

        public MapImmutableProperties.Builder withoutProperty​(String key,
                                                              Object value)
        Specified by:
        withoutProperty in interface io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>
      • withoutProperty

        public MapImmutableProperties.Builder withoutProperty​(String key)
        Specified by:
        withoutProperty in interface io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>
      • withProperties

        public io.annot8.api.properties.ImmutableProperties.Builder withProperties​(io.annot8.api.properties.Properties properties)
        Specified by:
        withProperties in interface io.annot8.api.helpers.builders.WithPropertiesBuilder<io.annot8.api.properties.ImmutableProperties.Builder>
      • save

        public io.annot8.api.properties.ImmutableProperties save()
        Specified by:
        save in interface io.annot8.api.helpers.builders.WithSave<io.annot8.api.properties.ImmutableProperties>