Record Class ServiceAccountQueryImpl
java.lang.Object
java.lang.Record
com.atlassian.crowd.manager.service.ServiceAccountQueryImpl
- All Implemented Interfaces:
ServiceAccountQuery
public record ServiceAccountQueryImpl(Boolean active, String phrase)
extends Record
implements ServiceAccountQuery
-
Constructor Summary
ConstructorsConstructorDescriptionServiceAccountQueryImpl(Boolean active) ServiceAccountQueryImpl(Boolean active, String phrase) Creates an instance of aServiceAccountQueryImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phrase()Returns the value of thephraserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServiceAccountQueryImpl
-
ServiceAccountQueryImpl
public ServiceAccountQueryImpl() -
ServiceAccountQueryImpl
Creates an instance of aServiceAccountQueryImplrecord class.- Parameters:
active- the value for theactiverecord componentphrase- the value for thephraserecord component
-
-
Method Details
-
getActive
- Specified by:
getActivein interfaceServiceAccountQuery- Returns:
- if true, then only fetch active service accounts, if false, then only fetch inactive service accounts. If None, then fetch all service accounts
-
getPhrase
- Specified by:
getPhrasein interfaceServiceAccountQuery- Returns:
- the phrase to search for in the service account name or display name or description.
-
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). -
active
Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
phrase
Returns the value of thephraserecord component.- Returns:
- the value of the
phraserecord component
-