xpertss.json.schema.format.extra.SHA1FormatAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema Show documentation
Show all versions of json-schema Show documentation
A Java implementation of the JSON Schema specification.
The newest version!
package xpertss.json.schema.format.extra;
import xpertss.json.schema.format.FormatAttribute;
import xpertss.json.schema.format.helpers.HexStringFormatAttribute;
/**
* Format specifier for {@code sha1}
*
* This format will be quite familiar to git users!
*
* @see HexStringFormatAttribute
*/
public final class SHA1FormatAttribute extends HexStringFormatAttribute {
private static final FormatAttribute instance = new SHA1FormatAttribute();
private SHA1FormatAttribute()
{
super("sha1", 40);
}
public static FormatAttribute getInstance()
{
return instance;
}
}