of
Validation for a registry object in a DefaultedRegistry
This validation will accept any instance of an object that is registered in the provided registry. Will use the registries default value as its default.
Return
ValidatedField<T> - Validation wrapping the registry. Is a Supplier and Consumer of the current instance of T it is holding
Author
fzzyhmstrs
Since
0.5.0
Parameters
the object type
DefaultedRegistry<T> - the registry instance
Validation for a registry object in a Registry, the Registry doesn't have to be Defaulted because a default is being provided.
This validation will accept any instance of an object that is registered in the provided registry.
Return
ValidatedField<T> - Validation wrapping the registry. Is a Supplier and Consumer of the current instance of T it is holding
Author
fzzyhmstrs
Since
0.5.0
Parameters
the object type
T default registry object instance
Registry<T> - the registry instance
Throws
If the default provided isn't actually registered in the registry.
Validation for a registry object in a Registry, the Registry doesn't have to be Defaulted because a default is being provided.
Return
ValidatedField<T> - Validation wrapping the registry. Is a Supplier and Consumer of the current instance of T it is holding
Author
fzzyhmstrs
Since
0.5.0
Parameters
the object type
T default registry object instance
Registry<T> - the registry instance
Predicate<RegistryEntry<T>> - filters the allowable registry entries
Throws
If the default provided isn't actually registered in the registry.
Validation for a registry object in a Registry, the Registry doesn't have to be Defaulted because a default is being provided.
This validation will accept any instance of an object that is registered in the provided registry.
Return
ValidatedField<T> - Validation wrapping the registry. Is a Supplier and Consumer of the current instance of T it is holding
Author
fzzyhmstrs
Since
0.5.0
Parameters
the object type
T default registry object instance
Registry<T> - the registry instance
BiPredicate<Identifier, RegistryEntry<T>> - filters the allowable registry entries
Throws
If the default provided isn't actually registered in the registry.