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

de.hilling.junit.cdi.annotations.ImmutableGlobalTestImplementation Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package de.hilling.junit.cdi.annotations;

import java.lang.annotation.Annotation;
import java.util.Objects;
import org.immutables.value.Generated;

/**
 * Immutable implementation of {@link GlobalTestImplementation}.
 * 

* Use the builder to create immutable instances: * {@code ImmutableGlobalTestImplementation.builder()}. */ @Generated(from = "GlobalTestImplementation", generator = "Immutables") @SuppressWarnings({"all"}) @javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableGlobalTestImplementation implements GlobalTestImplementation { private ImmutableGlobalTestImplementation(ImmutableGlobalTestImplementation.Builder builder) { } /** {@inheritDoc} */ @Override public Class annotationType() { return GlobalTestImplementation.class; } /** * This instance is equal to any implementation of the {@link ImmutableGlobalTestImplementation} type with equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof GlobalTestImplementation && equalTo(0, (GlobalTestImplementation) another); } @SuppressWarnings("MethodCanBeStatic") private boolean equalTo(int synthetic, GlobalTestImplementation another) { return true; } /** * Returns a constant hash code value. * @return hashCode value */ @Override public int hashCode() { return -1097078704; } /** * Prints the immutable value {@code GlobalTestImplementation}. * @return A string representation of the value */ @Override public String toString() { return "@GlobalTestImplementation"; } /** * Creates an immutable copy of a {@link GlobalTestImplementation} value. * Uses accessors to get values to initialize the new immutable instance. * If an instance is already immutable, it is returned as is. * @param instance The instance to copy * @return A copied immutable GlobalTestImplementation instance */ public static ImmutableGlobalTestImplementation copyOf(GlobalTestImplementation instance) { if (instance instanceof ImmutableGlobalTestImplementation) { return (ImmutableGlobalTestImplementation) instance; } return ImmutableGlobalTestImplementation.builder() .from(instance) .build(); } /** * Creates a builder for {@link ImmutableGlobalTestImplementation ImmutableGlobalTestImplementation}. *

   * ImmutableGlobalTestImplementation.builder()
   *    .build();
   * 
* @return A new ImmutableGlobalTestImplementation builder */ public static ImmutableGlobalTestImplementation.Builder builder() { return new ImmutableGlobalTestImplementation.Builder(); } /** * Builds instances of type {@link ImmutableGlobalTestImplementation ImmutableGlobalTestImplementation}. * Initialize attributes and then invoke the {@link #build()} method to create an * immutable instance. *

{@code Builder} is not thread-safe and generally should not be stored in a field or collection, * but instead used immediately to create instances. */ @Generated(from = "GlobalTestImplementation", generator = "Immutables") public static final class Builder { private Builder() { } /** * Fill a builder with attribute values from the provided {@code GlobalTestImplementation} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(GlobalTestImplementation instance) { Objects.requireNonNull(instance, "instance"); return this; } /** * Builds a new {@link ImmutableGlobalTestImplementation ImmutableGlobalTestImplementation}. * @return An immutable instance of GlobalTestImplementation * @throws java.lang.IllegalStateException if any required attributes are missing */ public ImmutableGlobalTestImplementation build() { return new ImmutableGlobalTestImplementation(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy