Package org.apache.pekko
Class NotUsed
java.lang.Object
org.apache.pekko.NotUsed
- Direct Known Subclasses:
NotUsed$
This type is used in generic type signatures wherever the actual value is of no importance.
It is a combination of Scala’s
Unit and Java’s Void, 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanabstract static booleanstatic NotUsedJava API: the singleton instancestatic inthashCode()static NotUsednotUsed()Java API: the singleton instancestatic intstatic ObjectproductElement(int x$1) static StringproductElementName(int n) static scala.collection.Iterator<String>static scala.collection.Iterator<Object>static Stringstatic StringtoString()
-
Constructor Details
-
NotUsed
public NotUsed()
-
-
Method Details
-
getInstance
Java API: the singleton instance -
notUsed
Java API: the singleton instanceThis is equivalent to
NotUsed.getInstance, but can be used with static import. -
productPrefix
-
productArity
public static int productArity() -
productElement
-
productIterator
-
canEqual
-
hashCode
public static int hashCode() -
toString
-
equals
-
productElementName
-
productElementNames
-