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

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

package org.immutables.javaslang.encodings;

import org.immutables.encode.EncodingMetadata;

@EncodingMetadata(
  name = "org.immutables.javaslang.encodings.JavaslangOptionEncoding",
  imports = {
  },
  typeParams = {"T"},
  elements = {
    @EncodingMetadata.Element(
      name = "field",
      tags = {"IMPL", "PRIVATE", "FINAL", "FIELD"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {},
      code = "",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangOptionEncoding_from",
      tags = {"STATIC", "PRIVATE", "FROM", "SYNTH"},
      naming = "*_from",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {"value: javaslang.control.Option"},
      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 @:javaslangOptionEncoding_get().toString();\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "hashCode",
      tags = {"PRIVATE", "HASH_CODE", "SYNTH"},
      naming = "*_hashCode",
      stdNaming = "NONE",
      type = "int",
      typeParams = {},
      params = {},
      code = "{\nreturn @:javaslangOptionEncoding_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.JavaslangOptionEncoding"},
      code = "{\nreturn this.@:javaslangOptionEncoding_get().equals(@^other.@:javaslangOptionEncoding_get())\n;}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "build",
      tags = {"BUILDER", "PRIVATE", "BUILD"},
      naming = "*_build",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {},
      code = "{\nreturn this.@@optional;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangOptionEncoding_get",
      tags = {"EXPOSE", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {},
      code = "{\nreturn @@field;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "javaslangOptionEncoding_copy",
      tags = {"COPY", "SYNTH"},
      naming = "*",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {"value: javaslang.control.Option"},
      code = "{\nreturn @:javaslangOptionEncoding_from(@^value);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "optional",
      tags = {"BUILDER", "PRIVATE", "FIELD"},
      naming = "*_optional",
      stdNaming = "NONE",
      type = "javaslang.control.Option",
      typeParams = {},
      params = {},
      code = "javaslang.control.Option.none()",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "set",
      tags = {"BUILDER", "INIT", "COPY"},
      naming = "*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"opt: javaslang.control.Option"},
      code = "{\nthis.@@optional = @^opt;\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "setValue",
      tags = {"BUILDER", "INIT"},
      naming = "setValue*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {"x: T"},
      code = "{\nthis.@@optional = javaslang.control.Option.of(@^x);\n}",
      thrown = {}
    ),
    @EncodingMetadata.Element(
      name = "unset",
      tags = {"BUILDER", "INIT"},
      naming = "unset*",
      stdNaming = "NONE",
      type = "void",
      typeParams = {},
      params = {},
      code = "{\nthis.@@optional = javaslang.control.Option.none();\n}",
      thrown = {}
    )
  }
)
public @interface JavaslangOptionEncodingEnabled {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy