org.eel.kitchen.jsonschema.format
Class UnixEpochFormatSpecifier

java.lang.Object
  extended by org.eel.kitchen.jsonschema.format.FormatSpecifier
      extended by org.eel.kitchen.jsonschema.format.UnixEpochFormatSpecifier

public final class UnixEpochFormatSpecifier
extends FormatSpecifier

Validator for the utc-millisec format specification

As an extra step, this validator also ensures that the number in the instance is not negative, and does not overflow: Java's System.currentTimeMillis() may return a long, but internally the return code is a signed 32-bit integer, therefore must not be greater than 2^31 - 1.


Method Summary
static FormatSpecifier getInstance()
           
 
Methods inherited from class org.eel.kitchen.jsonschema.format.FormatSpecifier
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FormatSpecifier getInstance()


Copyright © 2012. All Rights Reserved.