Record Class OllamaApi.Model
java.lang.Object
java.lang.Record
org.springframework.ai.ollama.api.OllamaApi.Model
- Enclosing class:
- OllamaApi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.digest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.Returns the value of themodifiedAtrecord component.name()Returns the value of thenamerecord component.size()Returns the value of thesizerecord component.final StringtoString()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 aModelrecord class.- Parameters:
name- the value for thenamerecord componentmodel- the value for themodelrecord componentmodifiedAt- the value for themodifiedAtrecord componentsize- the value for thesizerecord componentdigest- the value for thedigestrecord componentdetails- the value for thedetailsrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
modifiedAt
Returns the value of themodifiedAtrecord component.- Returns:
- the value of the
modifiedAtrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-