Record Class ServiceAccountSpaceResourceDescriptionImpl

java.lang.Object
java.lang.Record
com.atlassian.confluence.impl.user.crowd.serviceaccount.ServiceAccountSpaceResourceDescriptionImpl
All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.service.ResourceDescription

public record ServiceAccountSpaceResourceDescriptionImpl(Space space, String spaceKey, I18NBeanFactory i18NBeanFactory) extends Record implements com.atlassian.crowd.embedded.spi.service.ResourceDescription
  • Constructor Details

    • ServiceAccountSpaceResourceDescriptionImpl

      public ServiceAccountSpaceResourceDescriptionImpl(Space space, String spaceKey, I18NBeanFactory i18NBeanFactory)
      Creates an instance of a ServiceAccountSpaceResourceDescriptionImpl record class.
      Parameters:
      space - the value for the space record component
      spaceKey - the value for the spaceKey record component
      i18NBeanFactory - the value for the i18NBeanFactory record component
  • Method Details

    • getResource

      public com.atlassian.crowd.embedded.api.service.Resource getResource()
      Specified by:
      getResource in interface com.atlassian.crowd.embedded.spi.service.ResourceDescription
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface com.atlassian.crowd.embedded.spi.service.ResourceDescription
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • space

      public Space space()
      Returns the value of the space record component.
      Returns:
      the value of the space record component
    • spaceKey

      public String spaceKey()
      Returns the value of the spaceKey record component.
      Returns:
      the value of the spaceKey record component
    • i18NBeanFactory

      public I18NBeanFactory i18NBeanFactory()
      Returns the value of the i18NBeanFactory record component.
      Returns:
      the value of the i18NBeanFactory record component