Record Class ObjectClassInfo

java.lang.Object
java.lang.Record
com.evolveum.midpoint.smart.api.info.ObjectClassInfo
Record Components:
definition - Definition of the object class.
objectTypes - Definitions of object types associated with this object class.
sizeEstimation - Estimation of the number of objects in this object class on particular resource.
statistics - Latest gathered statistics related to this object class, used to suggest object types. (If present.)
All Implemented Interfaces:
Serializable

public record ObjectClassInfo(ResourceObjectClassDefinition definition, Collection<ResourceObjectTypeDefinition> objectTypes, ObjectClassSizeEstimationType sizeEstimation, @Nullable ShadowObjectClassStatisticsType statistics) extends Record implements Serializable
Provides information about an object class that is useful for the Smart Integration Service.
See Also:
  • Constructor Details

  • Method Details

    • getStatisticsSize

      public Integer getStatisticsSize()
    • getObjectClassName

      public QName getObjectClassName()
    • 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.
    • definition

      public ResourceObjectClassDefinition definition()
      Returns the value of the definition record component.
      Returns:
      the value of the definition record component
    • objectTypes

      Returns the value of the objectTypes record component.
      Returns:
      the value of the objectTypes record component
    • sizeEstimation

      public ObjectClassSizeEstimationType sizeEstimation()
      Returns the value of the sizeEstimation record component.
      Returns:
      the value of the sizeEstimation record component
    • statistics

      @Nullable public @Nullable ShadowObjectClassStatisticsType statistics()
      Returns the value of the statistics record component.
      Returns:
      the value of the statistics record component