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

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

package org.immutables.javaslang.encodings;

import org.immutables.encode.EncodingMetadata;

@EncodingMetadata(
  name = "org.immutables.javaslang.encodings.JavaslangLinkedHashMapEncoding",
  imports = {
  },
  typeParams = {"K", "V"},
  elements = {
    @EncodingMetadata.Element(
      name = "field",
      tags = {"IMPL", "PRIVATE", "FINAL", "FIELD"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {},
      code = "",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangLinkedHashMapEncoding_from",
      tags = {"STATIC", "PRIVATE", "FROM", "SYNTH"},
      naming = "*_from",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {"value: javaslang.collection.LinkedHashMap"},
      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 @:javaslangLinkedHashMapEncoding_get().toString();\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "hashCode",
      tags = {"PRIVATE", "HASH_CODE", "SYNTH"},
      naming = "*_hashCode",
      stdNaming = "NONE",
      type = "int",
      typeParams = {},
      params = {},
      code = "{\nreturn @:javaslangLinkedHashMapEncoding_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.JavaslangLinkedHashMapEncoding"},
      code = "{\nreturn this.@:javaslangLinkedHashMapEncoding_get().equals(@^other.@:javaslangLinkedHashMapEncoding_get())\n;}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "build",
      tags = {"BUILDER", "PRIVATE", "BUILD"},
      naming = "*_build",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {},
      code = "{\nreturn this.@@map;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangLinkedHashMapEncoding_get",
      tags = {"EXPOSE", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {},
      code = "{\nreturn @@field;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangLinkedHashMapEncoding_copy",
      tags = {"COPY", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {"value: javaslang.collection.LinkedHashMap"},
      code = "{\nreturn @:javaslangLinkedHashMapEncoding_from(@^value);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "map",
      tags = {"BUILDER", "PRIVATE", "FIELD"},
      naming = "*_map",
      stdNaming = "NONE",
      type = "javaslang.collection.LinkedHashMap",
      typeParams = {},
      params = {},
      code = "javaslang.collection.LinkedHashMap.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"},
      naming = "*",
      stdNaming = "ADD_ALL",
      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.LinkedHashMap"},
      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.LinkedHashMap.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.LinkedHashMap.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.LinkedHashMap.ofEntries(@^entries);\n}",
      thrown = {}
    )
  }
)
public @interface JavaslangLinkedHashMapEncodingEnabled {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy