Class BaseIncludeProperties<T extends BaseIncludeProperties<T,​E>,​E extends Entity>

    • Constructor Detail

      • BaseIncludeProperties

        public BaseIncludeProperties​(String key)
        Create a new policy.
        Parameters:
        key - that matching properties must have, can be null for all properties.
    • Method Detail

      • with

        public T with​(String key)
        Create a new policy from the current one, reconfigured to only match properties with the given key.
        Parameters:
        key - that matching properties must have, can be null for all properties.
        Returns:
        reconfigured policy.
      • newInstance

        protected abstract T newInstance​(String key)
        Create a new instance of this policy with the given key.
        Parameters:
        key - of the new policy.
        Returns:
        new policy.
      • getKey

        public String getKey()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object