Record Class ConfigSourceType.Classpath
java.lang.Object
java.lang.Record
cloud.opencode.base.config.jdk25.ConfigSourceType.Classpath
- All Implemented Interfaces:
ConfigSourceType
- Enclosing interface:
ConfigSourceType
public static record ConfigSourceType.Classpath(String resource)
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.resource()Returns the value of theresourcerecord component.toSource()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Classpath
Creates an instance of aClasspathrecord class.- Parameters:
resource- the value for theresourcerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-