Package com.mackenziehigh.snowflake
Class Trace
java.lang.Object
com.mackenziehigh.snowflake.Trace
An instance of this class is the output of a tracer that records match-attempts.
- Author:
- mackenzie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
This method returns the number of records that were created.elements()
This method return records that describe the starts/failures/successes of match-attempts.void
print
(PrintWriter out) This method prints the records herein contained to a writer.
-
Constructor Details
-
Trace
Sole Constructor.- Parameters:
elements
- are records describing match-attempts.total
- is the total number of records that were created.
-
-
Method Details
-
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
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.
-