Package akka.http.scaladsl.server.util
Class TupleOps<T>
- java.lang.Object
-
- scala.AnyVal
-
- akka.http.scaladsl.server.util.TupleOps<T>
-
public class TupleOps<T> extends scala.AnyVal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TupleOps.AppendOne<P,S>
static class
TupleOps.AppendOne$
static interface
TupleOps.FoldLeft<In,T,Op>
static class
TupleOps.FoldLeft$
static interface
TupleOps.Join<P,S>
static class
TupleOps.Join$
static class
TupleOps.LowLevelJoinImplicits
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> java.lang.Object
append(S value, TupleOps.AppendOne<T,S> ao)
Appends the given value to the tuple producing a tuple of arity n + 1.static <T> TupleOps<T>
enhanceTuple(T tuple, Tuple<T> evidence$1)
<In> java.lang.Object
foldLeft(In zero, BinaryPolyFunc op, TupleOps.FoldLeft<In,T,? extends BinaryPolyFunc> fold)
Left-Folds over the tuple using the given binary poly-function.<S> java.lang.Object
join(S suffixTuple, TupleOps.Join<T,S> join)
Appends the given tuple to the underlying tuple producing a tuple of arity n + m.T
tuple()
-
-
-
Constructor Detail
-
TupleOps
public TupleOps(T tuple)
-
-
Method Detail
-
tuple
public T tuple()
-
append
public <S> java.lang.Object append(S value, TupleOps.AppendOne<T,S> ao)
Appends the given value to the tuple producing a tuple of arity n + 1.- Parameters:
value
- (undocumented)ao
- (undocumented)- Returns:
- (undocumented)
-
foldLeft
public <In> java.lang.Object foldLeft(In zero, BinaryPolyFunc op, TupleOps.FoldLeft<In,T,? extends BinaryPolyFunc> fold)
Left-Folds over the tuple using the given binary poly-function.- Parameters:
zero
- (undocumented)op
- (undocumented)fold
- (undocumented)- Returns:
- (undocumented)
-
join
public <S> java.lang.Object join(S suffixTuple, TupleOps.Join<T,S> join)
Appends the given tuple to the underlying tuple producing a tuple of arity n + m.- Parameters:
suffixTuple
- (undocumented)join
- (undocumented)- Returns:
- (undocumented)
-
-