Skip to content

Refactoring ObjectType constraint #27

@sashirestela

Description

@sashirestela

Refactored methods for ObjectType:

Method Type Default Value Description
schema SCHEMA DIRECT Define the structure.
baseClass Class<?>[] (none) Base classes (Value classes for Maps).
keyClass Class<?> void.class Key class (only for Maps).
maxSize int Integer.MAX_VALUE Outer group's max size (only for schema = COLL*, MAP*).
maxInnerSize int Integer.MAX_VALUE Inner group's max size (only for schema = COLL_COLL, MAP_COLL).
maxChecks int 20 Max number of items to check by group (only for schema <> DIRECT).
allowNull boolean true Allow nulls in outer groups (only for schema = COLL*, MAP*).
allowInnerNull boolean true Allow nulls in inner groups (only for schema = COLL_COLL, MAP_COLL).

Enum SCHEMA:

Enum Value Meaning
DIRECT baseClass
COLL Collection<baseClass>
COLL_COLL Collection<Collection<baseClass>>
MAP Map<keyClass, baseClass>
MAP_COLL Map<keyClass, Collection<baseClass>>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions