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

org.immutables.fixture.nested.ImmutableCadabra Maven / Gradle / Ivy

There is a newer version: 2.10.1
Show newest version
package org.immutables.fixture.nested;

import javax.annotation.CheckReturnValue;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.Immutable;
import org.immutables.value.Generated;

/**
 * Immutable implementation of {@link NonGrouped.Cadabra}.
 * 

* Use the static factory method to get the default singleton instance: * {@code ImmutableCadabra.of()}. */ @Generated(from = "NonGrouped.Cadabra", generator = "Immutables") @SuppressWarnings({"all"}) @ParametersAreNonnullByDefault @javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCadabra implements NonGrouped.Cadabra { private ImmutableCadabra() {} /** * This instance is equal to all instances of {@code ImmutableCadabra} that have equal attribute values. * As instances of the {@code ImmutableCadabra} class are interned, the {@code equals} method is implemented * as an efficient reference equality check. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(@Nullable Object another) { return this == another; } /** * Returns a constant hash code value. * @return hashCode value */ @Override public int hashCode() { return -335792169; } /** * Prints the immutable value {@code Cadabra}. * @return A string representation of the value */ @Override public String toString() { return "Cadabra{}"; } private static final ImmutableCadabra INSTANCE = new ImmutableCadabra(); /** * Returns the default immutable singleton value of {@code Cadabra} * @return An immutable instance of Cadabra */ public static ImmutableCadabra of() { return INSTANCE; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy