Interface IAppendable<IMPLTYPE extends IAppendable<IMPLTYPE>>

Type Parameters:
IMPLTYPE - The implementation type.
All Known Subinterfaces:
IHashCodeGenerator
All Known Implementing Classes:
HashCodeGenerator

public interface IAppendable<IMPLTYPE extends IAppendable<IMPLTYPE>>
Defines a generic interface for appending objects to something.
Author:
Philip Helger
  • Method Details

    • append

      @Nonnull IMPLTYPE append(boolean x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(byte x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(char x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(double x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(float x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(int x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(long x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(short x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable Object x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable boolean[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable boolean[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable byte[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable byte[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable char[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable char[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable double[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable double[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable float[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable float[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable int[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable int[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable long[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable long[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable short[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable short[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable Object[] x)
      Parameters:
      x - value to be appended
      Returns:
      this
    • append

      @Nonnull IMPLTYPE append(@Nullable Object[] x, @Nonnegative int nOfs, @Nonnegative int nLen)
      Parameters:
      x - Array to add
      nOfs - Offset to start from. Must be ≥ 0.
      nLen - Number of array items to use. Must be ≥ 0.
      Returns:
      this