biz.c24.io.api.data
Class ValidationStatistics.Stat

java.lang.Object
  extended by biz.c24.io.api.data.ValidationStatistics.Stat
Enclosing class:
ValidationStatistics

public class ValidationStatistics.Stat
extends Object

A statistic of the number of valid / invalid instances validated.


Field Summary
 int invalid
          The number of invalid intances that have been validated.
 int valid
          The number of valid instances that have been validated.
 
Method Summary
 String getName()
          Returns the name of this statistic.
 boolean increment(boolean isValid)
          Increments one of the counts.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

valid

public int valid
The number of valid instances that have been validated.


invalid

public int invalid
The number of invalid intances that have been validated.

Method Detail

getName

public String getName()
Returns the name of this statistic.

Returns:
The name.

increment

public boolean increment(boolean isValid)
Increments one of the counts.

Parameters:
isValid - Whether to update the valid or invalid count.
Returns:
The isValid argument to allow method chaining.

toString

public String toString()
Overrides:
toString in class Object


C24 Technologies © 2002-2012: All Rights Reserved.