Record Class TaskOptions
java.lang.Object
java.lang.Record
com.elo.solutions.eloinst.settings.TaskOptions
- Record Components:
ixUrl- indexserver url
Value object to store command line options
-
Constructor Summary
ConstructorsConstructorDescriptionTaskOptions(String ixUrl) Creates an instance of aTaskOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TaskOptionsCreate a new task option object from given ix urlfinal inthashCode()Returns a hash code value for this object.booleanReturn true is ixUrl is not blankixUrl()Returns the value of theixUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskOptions
Creates an instance of aTaskOptionsrecord class.- Parameters:
ixUrl- the value for theixUrlrecord component
-
-
Method Details
-
hasIndexserverUrl
public boolean hasIndexserverUrl()Return true is ixUrl is not blank- Returns:
- true if indexserver url is set
-
from
Create a new task option object from given ix url- Parameters:
ixUrl- the indexserver url- Returns:
- new TaskOption object
-
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). -
ixUrl
Returns the value of theixUrlrecord component.- Returns:
- the value of the
ixUrlrecord component
-