Package com.axelor.ai.provider.sync
Record Class SyncRules.Family
java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.SyncRules.Family
- Record Components:
match- regex the whole model id must match —gpt-.*, notgpt-. A literal dot needs escaping (gpt-5[.]5); YAML rejects\.as an invalid escape, so a character class is the safe way to write one.exclude- regexes suppressing ids this family would otherwise takekeep- how many of the newest matching ids to take; null means all, which is what a local provider like Ollama wantsdefaults- values applied only when a model is first created — seeSyncRules.DEFAULTABLE
- Enclosing class:
SyncRules
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Returns the value of thedefaultsrecord component.final booleanIndicates whether some other object is "equal to" this one.exclude()Returns the value of theexcluderecord component.final inthashCode()Returns a hash code value for this object.keep()Returns the value of thekeeprecord component.match()Returns the value of thematchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
match
Returns the value of thematchrecord component.- Returns:
- the value of the
matchrecord component
-
exclude
Returns the value of theexcluderecord component.- Returns:
- the value of the
excluderecord component
-
keep
Returns the value of thekeeprecord component.- Returns:
- the value of the
keeprecord component
-
defaults
Returns the value of thedefaultsrecord component.- Returns:
- the value of the
defaultsrecord component
-