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

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

package org.immutables.javaslang.encodings;

import org.immutables.encode.EncodingMetadata;

@EncodingMetadata(
  name = "org.immutables.javaslang.encodings.JavaslangTreeMapEncoding",
  imports = {
  },
  typeParams = {"K", "V"},
  elements = {
    @EncodingMetadata.Element(
      name = "field",
      tags = {"IMPL", "PRIVATE", "FINAL", "FIELD"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {},
      code = "",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangTreeMapEncoding_from",
      tags = {"STATIC", "PRIVATE", "FROM", "SYNTH"},
      naming = "*_from",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {"value: javaslang.collection.TreeMap"},
      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 @:javaslangTreeMapEncoding_get().toString();\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "hashCode",
      tags = {"PRIVATE", "HASH_CODE", "SYNTH"},
      naming = "*_hashCode",
      stdNaming = "NONE",
      type = "int",
      typeParams = {},
      params = {},
      code = "{\nreturn @:javaslangTreeMapEncoding_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.JavaslangTreeMapEncoding"},
      code = "{\nreturn this.@:javaslangTreeMapEncoding_get().equals(@^other.@:javaslangTreeMapEncoding_get())\n;}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "build",
      tags = {"BUILDER", "PRIVATE", "BUILD"},
      naming = "*_build",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {},
      code = "{\nreturn this.@@map;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangTreeMapEncoding_get",
      tags = {"EXPOSE", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {},
      code = "{\nreturn @@field;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangTreeMapEncoding_copy",
      tags = {"COPY", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {"value: javaslang.collection.TreeMap"},
      code = "{\nreturn @:javaslangTreeMapEncoding_from(@^value);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "map",
      tags = {"BUILDER", "PRIVATE", "FIELD"},
      naming = "*_map",
      stdNaming = "NONE",
      type = "javaslang.collection.TreeMap",
      typeParams = {},
      params = {},
      code = "javaslang.collection.TreeMap.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.TreeMap"},
      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.TreeMap.ofAll(@^in_map);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "setMap",
      tags = {"BUILDER", "INIT"},
      naming = "setMap*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"in_map: javaslang.collection.Map"},
      code = "{\nthis.@@map = javaslang.collection.TreeMap.ofEntries(@^in_map.map(x -> x));\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.TreeMap.ofEntries(@^entries);\n}",
      thrown = {}
    )
  }
)
public @interface JavaslangTreeMapEncodingEnabled {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy