Class PropertyProjection

    • Constructor Detail

      • PropertyProjection

        public PropertyProjection​(String propertyName,
                                  @Nullable Class<?> type)
        Constructs a property projection.

        If type is specified, RawValue.asType(Class) will be used to restore the original value of the property. Otherwise instances of RawValue will be returned.

        Parameters:
        propertyName - The name of the property to project
        type - The type of values stored in the projected properties or null if the type is not known or variable. If null, RawValues are returned.
    • Method Detail

      • getName

        public String getName()
        Description copied from class: Projection
        Returns the name of the property this projection populates.
        Specified by:
        getName in class Projection
      • getType

        public @Nullable Class<?> getType()
        Returns the type specified for this projection.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable Object obj)
        Overrides:
        equals in class Object