Record Class JsonProviderFactory.ProviderInfo
java.lang.Object
java.lang.Record
cloud.opencode.base.json.spi.JsonProviderFactory.ProviderInfo
- Enclosing class:
JsonProviderFactory
public static record JsonProviderFactory.ProviderInfo(String name, String version, int priority, boolean isDefault)
extends Record
Provider information record.
提供者信息记录。
- Since:
- JDK 25, opencode-base-json V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionProviderInfo(String name, String version, int priority, boolean isDefault) Creates an instance of aProviderInforecord class. -
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.booleanReturns the value of theisDefaultrecord component.name()Returns the value of thenamerecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ProviderInfo
Creates an instance of aProviderInforecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentpriority- the value for thepriorityrecord componentisDefault- the value for theisDefaultrecord component
-
-
Method Details
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
isDefault
public boolean isDefault()Returns the value of theisDefaultrecord component.- Returns:
- the value of the
isDefaultrecord component
-