Record Class ConfigSourceType.File
java.lang.Object
java.lang.Record
cloud.opencode.base.config.jdk25.ConfigSourceType.File
- All Implemented Interfaces:
ConfigSourceType
- Enclosing interface:
ConfigSourceType
public static record ConfigSourceType.File(Path path, boolean watchable)
extends Record
implements ConfigSourceType
- Since:
- JDK 25, opencode-base-config V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConfigSourceType
ConfigSourceType.Classpath, ConfigSourceType.Environment, ConfigSourceType.File, ConfigSourceType.InMemory, ConfigSourceType.System -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.toSource()final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewatchablerecord component.
-
Constructor Details
-
File
-
File
Creates an instance of aFilerecord class.- Parameters:
path- the value for thepathrecord componentwatchable- the value for thewatchablerecord component
-
-
Method Details
-
toSource
- Specified by:
toSourcein interfaceConfigSourceType
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
watchable
public boolean watchable()Returns the value of thewatchablerecord component.- Returns:
- the value of the
watchablerecord component
-