Package ru.tinkoff.kora.http.common.form
Record Class FormMultipart
java.lang.Object
java.lang.Record
ru.tinkoff.kora.http.common.form.FormMultipart
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFormMultipart(List<? extends FormMultipart.FormPart> parts) Creates an instance of aFormMultipartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormMultipart.FormPartfinal booleanIndicates whether some other object is "equal to" this one.static FormMultipart.FormPartstatic FormMultipart.FormPartfile(String name, String fileName, String contentType, Flow.Publisher<ByteBuffer> content) final inthashCode()Returns a hash code value for this object.List<? extends FormMultipart.FormPart>parts()Returns the value of thepartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormMultipart
Creates an instance of aFormMultipartrecord class.- Parameters:
parts- the value for thepartsrecord component
-
-
Method Details
-
data
-
file
public static FormMultipart.FormPart file(String name, @Nullable String fileName, @Nullable String contentType, byte[] content) -
file
public static FormMultipart.FormPart file(String name, @Nullable String fileName, @Nullable String contentType, Flow.Publisher<ByteBuffer> content) -
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). -
parts
Returns the value of thepartsrecord component.- Returns:
- the value of the
partsrecord component
-