All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.immutables.javaslang.encodings.JavaslangMapEncodingEnabled Maven / Gradle / Ivy

package org.immutables.javaslang.encodings;

import org.immutables.encode.EncodingMetadata;

@EncodingMetadata(
  name = "org.immutables.javaslang.encodings.JavaslangMapEncoding",
  imports = {
  },
  typeParams = {"K", "V"},
  elements = {
    @EncodingMetadata.Element(
      name = "field",
      tags = {"IMPL", "PRIVATE", "FINAL", "FIELD"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {},
      code = "",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangMapEncoding_from",
      tags = {"STATIC", "PRIVATE", "FROM", "SYNTH"},
      naming = "*_from",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {"value: javaslang.collection.Map"},
      code = "{\nreturn @^value;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "toString",
      tags = {"PRIVATE", "TO_STRING", "SYNTH"},
      naming = "*_toString",
      stdNaming = "NONE",
      type = "java.lang.String",
      typeParams = {},
      params = {},
      code = "{\nreturn @:javaslangMapEncoding_get().toString();\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "hashCode",
      tags = {"PRIVATE", "HASH_CODE", "SYNTH"},
      naming = "*_hashCode",
      stdNaming = "NONE",
      type = "int",
      typeParams = {},
      params = {},
      code = "{\nreturn @:javaslangMapEncoding_get().hashCode();\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "equals",
      tags = {"PRIVATE", "EQUALS", "SYNTH"},
      naming = "*_equals",
      stdNaming = "NONE",
      type = "java.lang.String",
      typeParams = {},
      params = {"other: org.immutables.javaslang.encodings.JavaslangMapEncoding"},
      code = "{\nreturn this.@:javaslangMapEncoding_get().equals(@^other.@:javaslangMapEncoding_get())\n;}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "build",
      tags = {"BUILDER", "PRIVATE", "BUILD"},
      naming = "*_build",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {},
      code = "{\nreturn this.@@map;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangMapEncoding_get",
      tags = {"EXPOSE", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {},
      code = "{\nreturn @@field;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangMapEncoding_copy",
      tags = {"COPY", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {"value: javaslang.collection.Map"},
      code = "{\nreturn @:javaslangMapEncoding_from(@^value);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "map",
      tags = {"BUILDER", "PRIVATE", "FIELD"},
      naming = "*_map",
      stdNaming = "NONE",
      type = "javaslang.collection.Map",
      typeParams = {},
      params = {},
      code = "javaslang.collection.HashMap.empty()",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "put",
      tags = {"BUILDER", "INIT"},
      naming = "*",
      stdNaming = "PUT",
      type = "void",
      typeParams = {},
      params = {"key: K", "value: V"},
      code = "{\nthis.@@map = this.@@map.put(@^key, @^value);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "putEntry",
      tags = {"BUILDER", "INIT", "DEPLURALIZE"},
      naming = "putEntry*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"entry: javaslang.Tuple2"},
      code = "{\nthis.@@map = this.@@map.put(@^entry);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "set",
      tags = {"BUILDER", "INIT", "COPY"},
      naming = "*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"elements: javaslang.collection.Map"},
      code = "{\nthis.@@map = @^elements;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "setJavaMap",
      tags = {"BUILDER", "INIT"},
      naming = "setJavaMap*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"in_map: java.util.Map"},
      code = "{\nthis.@@map = javaslang.collection.HashMap.ofAll(@^in_map);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "setEntries",
      tags = {"BUILDER", "INIT"},
      naming = "setEntries*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"entries: java.lang.Iterable>"},
      code = "{\nthis.@@map = javaslang.collection.HashMap.ofEntries(@^entries);\n}",
      thrown = {}
    )
  }
)
public @interface JavaslangMapEncodingEnabled {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy