Record Class OllamaApi.Model
java.lang.Object
java.lang.Record
org.springframework.ai.ollama.api.OllamaApi.Model
- Enclosing class:
- OllamaApi
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetails()
Returns the value of thedetails
record component.digest()
Returns the value of thedigest
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.model()
Returns the value of themodel
record component.Returns the value of themodifiedAt
record component.name()
Returns the value of thename
record component.size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Model
public Model(String name, String model, Instant modifiedAt, Long size, String digest, OllamaApi.Model.Details details) Creates an instance of aModel
record class.- Parameters:
name
- the value for thename
record componentmodel
- the value for themodel
record componentmodifiedAt
- the value for themodifiedAt
record componentsize
- the value for thesize
record componentdigest
- the value for thedigest
record componentdetails
- the value for thedetails
record component
-
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
modifiedAt
Returns the value of themodifiedAt
record component.- Returns:
- the value of the
modifiedAt
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
digest
Returns the value of thedigest
record component.- Returns:
- the value of the
digest
record component
-
details
Returns the value of thedetails
record component.- Returns:
- the value of the
details
record component
-