Class NOPRINT

  • All Implemented Interfaces:
    java.lang.Appendable

    public class NOPRINT
    extends java.lang.Object
    implements java.lang.Appendable
    NOPRINT - Documentation.

    This class acts as a dummy output instance of java.lang.Appendable. It does not print any actual text, either to external output (terminal-output), nor to internal StringBuffer's.

    This class does not have any externalized (public) constructors. Instead, a public, static, final, 'singleton' field-instance of this class is available. Please see field 'np'.



    • Field Summary

      Fields 
      Modifier and Type Field
      static NOPRINT np
    • Constructor Summary

      Constructors 
      Modifier Constructor
      protected NOPRINT()
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method
      Appendable append​(char c)
      Appendable append​(CharSequence cs)
      Appendable append​(CharSequence cs, int start, int end)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • np

        public static final NOPRINT np
        This is the externalized, singleton instance of this class. This class does not have any public constructors.
        Code:
        Exact Field Declaration Expression:
        1
        public static final NOPRINT np = new NOPRINT();
        
    • Constructor Detail

    • Method Detail

      • append

        public java.lang.Appendable append​(java.lang.CharSequence cs,
                                           int start,
                                           int end)
        Does nothing. Returns 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        cs - Dummy input. Ignored, completely.
        start - Dummy input. Ignored, completely.
        end - dummy input. Ignored, completely.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
        1
         return this;
        
      • append

        public java.lang.Appendable append​(java.lang.CharSequence cs)
        Does nothing. Return 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        cs - dummy input. Ignored.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
        1
         return this;
        
      • append

        public java.lang.Appendable append​(char c)
        Does nothing. Returns 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        c - Dummy input. Ignored, completely.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
        1
         return this;