Package gnu.lists

Interface Consumer

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void accept​(double t)  
      default void accept​(int t)  
      default void accept​(long t)  
      default void accept​(java.lang.Object t)  
      Consumer append​(char c)  
      Consumer append​(java.lang.CharSequence csq)  
      Consumer append​(java.lang.CharSequence csq, int start, int end)  
      void endAttribute()
      End of an attribute or end of an actual parameter.
      void endDocument()  
      void endElement()  
      boolean ignoring()
      True if consumer is ignoring rest of element.
      void startAttribute​(java.lang.Object attrType)
      Write a attribute for the current element.
      void startDocument()  
      void startElement​(java.lang.Object type)  
      void write​(char[] buf, int start, int length)  
      void write​(int ch)  
      void write​(java.lang.CharSequence string, int start, int length)  
      void write​(java.lang.String string)  
      void writeBoolean​(boolean v)  
      void writeDouble​(double v)  
      void writeFloat​(float v)  
      void writeInt​(int v)  
      void writeLong​(long v)  
      void writeObject​(java.lang.Object v)  
      • Methods inherited from interface java.util.function.Consumer

        andThen
      • 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
    • Method Detail

      • writeBoolean

        void writeBoolean​(boolean v)
      • writeFloat

        void writeFloat​(float v)
      • writeDouble

        void writeDouble​(double v)
      • writeInt

        void writeInt​(int v)
      • writeLong

        void writeLong​(long v)
      • startDocument

        void startDocument()
      • endDocument

        void endDocument()
      • startElement

        void startElement​(java.lang.Object type)
      • endElement

        void endElement()
      • startAttribute

        void startAttribute​(java.lang.Object attrType)
        Write a attribute for the current element. This is only allowed immediately after a startElement.
      • endAttribute

        void endAttribute()
        End of an attribute or end of an actual parameter. The former use matches a startAttribute; the latter may not, and can be used to separate parameters in a parameter list. This double duty suggsts the method should at least be re-named.
      • writeObject

        void writeObject​(java.lang.Object v)
      • ignoring

        boolean ignoring()
        True if consumer is ignoring rest of element. The producer can use this information to skip ahead.
      • write

        void write​(int ch)
      • write

        void write​(java.lang.String string)
      • write

        void write​(java.lang.CharSequence string,
                   int start,
                   int length)
      • write

        void write​(char[] buf,
                   int start,
                   int length)
      • append

        Consumer append​(char c)
        Specified by:
        append in interface java.lang.Appendable
      • append

        Consumer append​(java.lang.CharSequence csq)
        Specified by:
        append in interface java.lang.Appendable
      • append

        Consumer append​(java.lang.CharSequence csq,
                        int start,
                        int end)
        Specified by:
        append in interface java.lang.Appendable
      • accept

        default void accept​(java.lang.Object t)
        Specified by:
        accept in interface java.util.function.Consumer<java.lang.Object>
      • accept

        default void accept​(int t)
        Specified by:
        accept in interface java.util.function.IntConsumer
      • accept

        default void accept​(long t)
        Specified by:
        accept in interface java.util.function.LongConsumer
      • accept

        default void accept​(double t)
        Specified by:
        accept in interface java.util.function.DoubleConsumer