Skip to content

Releases: burakim/Kaptan-Field-Checker

Kaptan Field Checker V1.1.0

26 Dec 08:50
Compare
Choose a tag to compare

Kaptan finally supports "MustBeFollowingValues" derived annotations. You can specify an allowed value set for class fields. If it does not get any value in the allowed set, it raised a field value violation exception.

The following annotations were added in this version:

  • MustContainsFollowingByteValues(values={,,..})
  • MustContainsFollowingDoubleValues(values={,,..})
  • MustContainsFollowingFloatValues(values={,,..})
  • MustContainsFollowingIntegerValues(values={,,..})
  • MustContainsFollowingLongValues(values={,,..})
  • MustContainsFollowingShortIntegerValues(values={,,..})
  • MustContainsFollowingStringValues(values={,,..})

Another improvement is the "Violation" model object. In the "FieldViolationException" class, it contained an ArrayList that contains only annotation classes. It sometimes led to ambiguity about which field caused a violation. Now this ArrayList contains "Violation" model object that contains field object that refers guilty class field and annotation to specify what its guilt is.

Finally, Kaptan supports JAVA enumerations too.

Kaptan Field Checker with JDK 8 support

01 Dec 03:29
Compare
Choose a tag to compare

Now Kaptan supports JDK 8+ instead of just JDK 10. It also contains the features of the previous release.

Kaptan Field Checker

29 Nov 17:54
a00c288
Compare
Choose a tag to compare

This is the first release of Kaptan Field Checker library. It supports the following annotations:

@MustBeNonNull
@MustBeNull
@MustBeNonEmpty
@MustBeEmpty
@EnforceSizeConstraint(min=, max=)
@EnforceRegexRule()
@EnforceIntervalConstraint(min=, max=)

You can access the official documentation from this link Javadocs