Record Class FileSourceConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.source.FileSourceConfig
-
Constructor Summary
ConstructorsConstructorDescriptionFileSourceConfig
(String filePath, int batchSize) Creates an instance of aFileSourceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thebatchSize
record component.final boolean
Indicates whether some other object is "equal to" this one.filePath()
Returns the value of thefilePath
record component.static FileSourceConfig
fromJson
(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject config) final int
hashCode()
Returns a hash code value for this object.com.inductiveautomation.ignition.common.gson.JsonObject
toJson()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FileSourceConfig
Creates an instance of aFileSourceConfig
record class.- Parameters:
filePath
- the value for thefilePath
record componentbatchSize
- the value for thebatchSize
record component
-
-
Method Details
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson() -
fromJson
public static FileSourceConfig fromJson(@Nullable @Nullable com.inductiveautomation.ignition.common.gson.JsonObject config) -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
filePath
Returns the value of thefilePath
record component.- Returns:
- the value of the
filePath
record component
-
batchSize
public int batchSize()Returns the value of thebatchSize
record component.- Returns:
- the value of the
batchSize
record component
-