Class stl_AnsiMake

java.lang.Object
com.jackmeng.stl.stl_AnsiMake

public class stl_AnsiMake
extends java.lang.Object
A helper class with concatting multiple instances of stl_AnsiColors to create a finalized colorized Ansi String. This AnsiMake is not very intuitive and requires a lot of verbosity to be used in order to create a multicolored string. For example, it is easy to create non changing colors with a single AnsiMake:
Author:
Jack Meng
  • Field Summary

    Fields
    Modifier and Type Field Description
    private stl_AnsiColors[] colors  
    private java.lang.Object[] payload  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_AnsiMake​(stl_AnsiColors[] start, java.lang.Object[] payload)
    Initializes with a set amount of colors to be appended.
    stl_AnsiMake​(stl_AnsiColors color, java.lang.Object payload)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • payload

      private final java.lang.Object[] payload
    • colors

      private final stl_AnsiColors[] colors
  • Constructor Details

    • stl_AnsiMake

      public stl_AnsiMake​(stl_AnsiColors[] start, java.lang.Object[] payload)
      Initializes with a set amount of colors to be appended.
      Parameters:
      start -
      payload -
    • stl_AnsiMake

      public stl_AnsiMake​(stl_AnsiColors color, java.lang.Object payload)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
      Returns:
      String