Class ScimSchemaExtension

java.lang.Object
com.revetsec.scim.ScimSchemaExtension

@Immutable @CheckReturnValue public final class ScimSchemaExtension extends Object
Immutable registration of a required or optional application-resource schema extension.
Since:
1.0.0
  • Method Details

    • fromSchema

      Registers a schema extension with an explicit required characteristic.
      Parameters:
      schema - the required extension schema
      required - whether the extension is required
      Returns:
      the immutable registration
      Since:
      1.0.0
    • getSchema

      Returns the registered schema.
      Returns:
      the registered schema
      Since:
      1.0.0
    • isRequired

      Returns whether the extension is required.
      Returns:
      whether the extension is required
      Since:
      1.0.0
    • equals

      public boolean equals(@Nullable Object other)
      Compares extension schema and required characteristics.
      Overrides:
      equals in class Object
      Parameters:
      other - the comparison value
      Returns:
      whether the extensions are equal
      Since:
      1.0.0
    • hashCode

      public int hashCode()
      Returns the semantic registration hash.
      Overrides:
      hashCode in class Object
      Returns:
      the semantic hash
      Since:
      1.0.0
    • toString

      Returns a fixed redacted description.
      Overrides:
      toString in class Object
      Returns:
      a fixed redacted description
      Since:
      1.0.0