Record Class ApplicationQuery
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationQuery
- Record Components:
applicationId- optional application idstate- optional lifecycle state
public record ApplicationQuery(ApplicationId applicationId, ApplicationRunState state)
extends Record
Immutable query for active applications.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationQuery(ApplicationId applicationId, ApplicationRunState state) Creates an instance of aApplicationQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationQueryall()Creates a query that matches all active application records.Returns the value of theapplicationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationQuery
Creates an instance of aApplicationQueryrecord class.- Parameters:
applicationId- the value for theapplicationIdrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
all
Creates a query that matches all active application records.- Returns:
- query matching all applications
-
toString
-
hashCode
-
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). -
applicationId
Returns the value of theapplicationIdrecord component.- Returns:
- the value of the
applicationIdrecord component
-
state
-