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

org.immutables.fixture.ImmutableSillyEmpty 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 SillyEmpty}.
 * 

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy