Class NoCachingNoUpdating.DisposableTriple<L,M,R>

java.lang.Object
com.landawn.abacus.util.NoCachingNoUpdating.DisposableTriple<L,M,R>
Type Parameters:
L -
M -
R -
All Implemented Interfaces:
NoCachingNoUpdating
Enclosing interface:
NoCachingNoUpdating

@Beta @SequentialOnly @Stateful public abstract static class NoCachingNoUpdating.DisposableTriple<L,M,R> extends Object implements NoCachingNoUpdating
One-off Object. No caching/saving in memory, No updating. To cache/save/update the Object, call clone()/copy().
Depends on context, it should be okay to cache/save the elements from the array, but never save or cache the Tripe itself.
  • Constructor Details

    • DisposableTriple

      public DisposableTriple()
  • Method Details

    • wrap

      public static <L, M, R> NoCachingNoUpdating.DisposableTriple<L,M,R> wrap(Triple<L,M,R> p)
      Type Parameters:
      L -
      M -
      R -
      Parameters:
      p -
      Returns:
    • left

      public abstract L left()
      Returns:
    • middle

      public abstract M middle()
      Returns:
    • right

      public abstract R right()
      Returns:
    • copy

      public Triple<L,M,R> copy()
      Returns:
    • apply

      public <U, E extends Exception> U apply(Throwables.TriFunction<? super L,? super M,? super R,? extends U,E> func) throws E
      Type Parameters:
      U -
      E -
      Parameters:
      func -
      Returns:
      Throws:
      E
    • accept

      public <E extends Exception> void accept(Throwables.TriConsumer<? super L,? super M,? super R,E> action) throws E
      Type Parameters:
      E -
      Parameters:
      action -
      Throws:
      E
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: