Class Trace

java.lang.Object
com.mackenziehigh.snowflake.Trace

public final class Trace extends Object
An instance of this class is the output of a tracer that records match-attempts.
Author:
mackenzie
  • Constructor Details

    • Trace

      public Trace(List<TraceElement> elements, int total)
      Sole Constructor.
      Parameters:
      elements - are records describing match-attempts.
      total - is the total number of records that were created.
  • Method Details

    • elements

      public List<TraceElement> elements()
      This method return records that describe the starts/failures/successes of match-attempts.
      Returns:
      a readonly list of immutable objects.
    • callCount

      public int callCount()
      This method returns the number of records that were created.

      This count may be greater-than elements().size().

      Returns:
      the aforedescribed count.
    • print

      public void print(PrintWriter out)
      This method prints the records herein contained to a writer.

      Note: The output format may change in the future.

      Parameters:
      out - is the writer itself.