Class JsonIncludeProperties.Value

    • Field Detail

      • _included

        protected final java.util.Set<java.lang.String> _included
        Name of the properties to include. Null means that all properties are included, empty means none.
    • Constructor Detail

      • Value

        protected Value​(java.util.Set<java.lang.String> included)
    • Method Detail

      • getIncluded

        public java.util.Set<java.lang.String> getIncluded()
        Returns:
        Names included, if any, possibly empty; null for "not defined"
      • withOverrides

        public JsonIncludeProperties.Value withOverrides​(JsonIncludeProperties.Value overrides)
        Mutant factory method to override the current value with an another, merging the included fields so that only entries that exist in both original and override set are included, taking into account that "undefined" JsonIncludeProperties.Values do not count ("undefined" meaning that getIncluded() returns null). So: overriding with "undefined" returns original Value as-is; overriding an "undefined" Value returns override Value as-is.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • _equals

        private static boolean _equals​(java.util.Set<java.lang.String> a,
                                       java.util.Set<java.lang.String> b)
      • _asSet

        private static java.util.Set<java.lang.String> _asSet​(java.lang.String[] v)