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

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

package org.immutables.fixture;

import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.Immutable;

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

* Use the static factory method to get the default singleton instance: * {@code ImmutableSillyEmpty.of()}. */ @SuppressWarnings("all") @ParametersAreNonnullByDefault @Generated({"Immutables.generator", "SillyEmpty"}) @Immutable 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 248860609; } /** * 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 - 2025 Weber Informatics LLC | Privacy Policy