bb.util
Class Check.CheckAdaptor

java.lang.Object
  extended by bb.util.Check
      extended by bb.util.Check.CheckAdaptor
Direct Known Subclasses:
Check.Arg, Check.Assert, Check.State
Enclosing class:
Check

public abstract static class Check.CheckAdaptor
extends Check

Abstract subclass of Check which merely implements Check.onFailure(String) to forward to Check.onFailure(String, Throwable). Since this is the typical behavior that subclasses will choose, this adaptor will usually be the immediate superclass instead of Check itself.


Nested Class Summary
 
Nested classes/interfaces inherited from class bb.util.Check
Check.Arg, Check.Assert, Check.CheckAdaptor, Check.State, Check.UnitTest
 
Constructor Summary
Check.CheckAdaptor()
           
Check.CheckAdaptor(boolean doCheck)
           
 
Method Summary
 void onFailure(String errMsg)
          Called whenever a check fails and the code has just errMsg to report.
 
Methods inherited from class bb.util.Check
arg, azzert, edt, empty, equals, equals, equals, equals, equals, equals, equals, equals, equals, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, hasSize, infinite, infinite, isFalse, isNull, isTrue, naN, naN, negative, negative, negative, negative, negative, negative, normal, normal, normalNegative, normalNegative, normalNotNegative, normalNotNegative, normalNotPositive, normalNotPositive, normalPositive, normalPositive, notBlank, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notInfinite, notInfinite, notNaN, notNaN, notNegative, notNegative, notNegative, notNegative, notNegative, notNegative, notNull, notPositive, notPositive, notPositive, notPositive, notPositive, notPositive, notZero, notZero, notZero, notZero, notZero, notZero, onFailure, positive, positive, positive, positive, positive, positive, state, unmodifiable, unmodifiable, validDirectory, validFile, validIndex, validIndex, validIndex, validIndex, validIndex, validIndex, validIndex, validIndex, validIndex, validIndex, validOffsetLength, validPort, validProbability, zero, zero, zero, zero, zero, zero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Check.CheckAdaptor

public Check.CheckAdaptor()

Check.CheckAdaptor

public Check.CheckAdaptor(boolean doCheck)
Method Detail

onFailure

public void onFailure(String errMsg)
Called whenever a check fails and the code has just errMsg to report.

Specified by:
onFailure in class Check