Package gnu.lists
Class VoidConsumer
java.lang.Object
gnu.lists.FilterConsumer
gnu.lists.VoidConsumer
- All Implemented Interfaces:
Consumer
,XConsumer
,Appendable
,Consumer<Object>
,DoubleConsumer
,IntConsumer
,LongConsumer
A Consumer that does nothing.
-
Field Summary
FieldsFields inherited from class gnu.lists.FilterConsumer
attributeType, base, inAttribute, skipping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VoidConsumer
boolean
ignoring()
True if consumer is ignoring rest of element.static VoidConsumer
Methods inherited from class gnu.lists.FilterConsumer
append, append, append, beforeContent, beforeNode, beginEntity, endAttribute, endDocument, endElement, endEntity, startAttribute, startDocument, startElement, write, write, write, write, writeBoolean, writeCDATA, writeComment, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeProcessingInstruction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.DoubleConsumer
andThen
Methods inherited from interface java.util.function.IntConsumer
andThen
Methods inherited from interface java.util.function.LongConsumer
andThen
-
Field Details
-
instance
-
-
Constructor Details
-
VoidConsumer
public VoidConsumer() -
VoidConsumer
-
-
Method Details
-
getInstance
-
make
-
ignoring
public boolean ignoring()True if consumer is ignoring rest of element. The producer can use this information to skip ahead.- Specified by:
ignoring
in interfaceConsumer
- Overrides:
ignoring
in classFilterConsumer
-