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

org.immutables.fixture.ImmutableSing7 Maven / Gradle / Ivy

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

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 Sing7}.
 * 

* Use the static factory method to get the default singleton instance: * {@code ImmutableSing7.of()}. */ @Generated(from = "Sing7", generator = "Immutables") @SuppressWarnings({"all"}) @ParametersAreNonnullByDefault @javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue final class ImmutableSing7 implements Sing7 { private ImmutableSing7() {} /** * This instance is equal to all instances of {@code ImmutableSing7} that have equal attribute values. * As instances of the {@code ImmutableSing7} 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 0; } /** * Prints the immutable value {@code Sing7}. * @return A string representation of the value */ @Override public String toString() { return "Sing7{}"; } private static final ImmutableSing7 INSTANCE = new ImmutableSing7(); /** * Returns the default immutable singleton value of {@code Sing7} * @return An immutable instance of Sing7 */ public static ImmutableSing7 of() { return INSTANCE; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy