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.
      • _ordered

        protected final java.lang.Boolean _ordered
        Whether the order of properties in _included defines the serialization order. null indicates "not defined" (and generally is used as Boolean.FALSE).
        Since:
        2.22
    • Constructor Detail

      • Value

        @Deprecated
        protected Value​(java.util.Set<java.lang.String> included)
        Deprecated.
        Since 2.22, use Value(Set, Boolean) instead.
      • Value

        protected Value​(java.util.Set<java.lang.String> included,
                        java.lang.Boolean ordered)
        Since:
        2.22
    • Method Detail

      • getIncluded

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

        public java.lang.Boolean getOrdered()
        Returns:
        Whether the order of properties in getIncluded() defines the serialization order; null if not set.
        Since:
        2.22
      • 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
      • _asSet

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