Package com.db4o.config
Class ConfigScope
- java.lang.Object
- 
- com.db4o.config.ConfigScope
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class ConfigScope extends java.lang.Object implements java.io.SerializableDefines a scope of applicability of a config setting.
 Some of the configuration settings can be either:
 - enabled globally;
 - enabled individually for a specified class;
 - disabled.
- 
- 
Field SummaryFields Modifier and Type Field Description static ConfigScopeDISABLEDMarks a configuration feature as globally disabled.static intDISABLED_IDstatic ConfigScopeGLOBALLYMarks a configuration feature as globally enabled.static intGLOBALLY_IDstatic ConfigScopeINDIVIDUALLYMarks a configuration feature as individually configurable.static intINDIVIDUALLY_ID
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyConfig(TernaryBool defaultValue)Checks if the current configuration scope is globally enabled or disabled.booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
DISABLED_IDpublic static final int DISABLED_ID - See Also:
- Constant Field Values
 
 - 
INDIVIDUALLY_IDpublic static final int INDIVIDUALLY_ID - See Also:
- Constant Field Values
 
 - 
GLOBALLY_IDpublic static final int GLOBALLY_ID - See Also:
- Constant Field Values
 
 - 
DISABLEDpublic static final ConfigScope DISABLED Marks a configuration feature as globally disabled.
 - 
INDIVIDUALLYpublic static final ConfigScope INDIVIDUALLY Marks a configuration feature as individually configurable.
 - 
GLOBALLYpublic static final ConfigScope GLOBALLY Marks a configuration feature as globally enabled.
 
- 
 - 
Method Detail- 
applyConfigpublic boolean applyConfig(TernaryBool defaultValue) Checks if the current configuration scope is globally enabled or disabled.- Parameters:
- defaultValue- - default result
- Returns:
- false if disabled, true if globally enabled, default value otherwise
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-