类 RegistryEntryFactory
java.lang.Object
pkg.exoad.poprock.core.registry.RegistryEntryFactory
- 直接已知子类:
DescriptiveRegistryEntryFactory
public sealed class RegistryEntryFactory
extends Object
implements ICollatable<RegistryEntry>, DebuggableAllRequiredNamedFieldsMixin
permits DescriptiveRegistryEntryFactory
RegistryEntry Factory
This class helps to construct a RegistryEntry using method chaining. It provides all of the necessary fields and construction functionality to make a working Registry Entry.
To use this class, you must callmake()
!- 作者:
- Jack Meng
- 另请参阅:
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明protected void
Internal method used to check the most basic properties.collate()
Output a different typestatic RegistryEntryFactory
make()
Starts the factory of making a registry entry using method chainingwithCanonicalName
(String name) Named constructor method for setting the canonical name propertyNamed constructor method for setting the checker function.withDefaultValue
(Object defaultCheck) Named constructor method for setting the default value on false evaluation从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 pkg.exoad.poprock.core.debug.DebuggableAllRequiredNamedFieldsMixin
ASSERT
-
字段详细资料
-
check
-
defaultValueCheck
-
canonicalName
-
currentValue
-
-
构造器详细资料
-
RegistryEntryFactory
protected RegistryEntryFactory()
-
-
方法详细资料
-
make
Starts the factory of making a registry entry using method chaining- 返回:
- A new instance of the Registry Entry Factory
-
withCheck
Named constructor method for setting the checker function. Please note that the functionality of the checker is mainly used for custom user implemented checks. For example Integer Bound Checks, these are not handled by any registries themselves (for the most part).- 参数:
check
- The checker function- 返回:
- this
-
withCanonicalName
Named constructor method for setting the canonical name property- 参数:
name
- The canonical name- 返回:
- this
-
withDefaultValue
Named constructor method for setting the default value on false evaluation- 参数:
defaultCheck
- The default value- 返回:
- this
-
withValue
-
collate
从接口复制的说明:ICollatable
Output a different type- 指定者:
collate
在接口中ICollatable<RegistryEntry>
- 返回:
- The produced object
-
checkTargets
protected void checkTargets()Internal method used to check the most basic properties.This method should be called by child classes to make sure at least the base properties are met.
-