Package org.apache.pekko
Class NotUsed
- java.lang.Object
-
- org.apache.pekko.NotUsed
-
- Direct Known Subclasses:
NotUsed$
public abstract class NotUsed extends java.lang.ObjectThis type is used in generic type signatures wherever the actual value is of no importance. It is a combination of Scala’sUnitand Java’sVoid, which both have different issues when used from the other language. An example use-case is the materialized value of a Pekko Stream for cases where no result shall be returned from materialization.
-
-
Constructor Summary
Constructors Constructor Description NotUsed()
-
Method Summary
All Methods Static Methods Abstract Methods Concrete Methods Modifier and Type Method Description static booleancanEqual(java.lang.Object x$1)abstract static booleanequals(java.lang.Object that)static NotUsedgetInstance()Java API: the singleton instancestatic inthashCode()static NotUsednotUsed()Java API: the singleton instancestatic intproductArity()static java.lang.ObjectproductElement(int x$1)static java.lang.StringproductElementName(int n)static scala.collection.Iterator<java.lang.String>productElementNames()static scala.collection.Iterator<java.lang.Object>productIterator()static java.lang.StringproductPrefix()static java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static NotUsed getInstance()
Java API: the singleton instance
-
notUsed
public static NotUsed notUsed()
Java API: the singleton instanceThis is equivalent to
NotUsed.getInstance, but can be used with static import.
-
productPrefix
public static java.lang.String productPrefix()
-
productArity
public static int productArity()
-
productElement
public static java.lang.Object productElement(int x$1)
-
productIterator
public static scala.collection.Iterator<java.lang.Object> productIterator()
-
canEqual
public static boolean canEqual(java.lang.Object x$1)
-
hashCode
public static int hashCode()
-
toString
public static java.lang.String toString()
-
equals
public abstract static boolean equals(java.lang.Object that)
-
productElementName
public static java.lang.String productElementName(int n)
-
productElementNames
public static scala.collection.Iterator<java.lang.String> productElementNames()
-
-