Class FieldSelector

    • Method Detail

      • addExclude

        public void addExclude​(String name,
                               Collection<String> excluding)
        If the given name is excluded, add it to the given collection
      • apply

        public void apply​(Object object)
        Applies the field selection to the given object, setting to null all values that should be excluded
      • includes

        public boolean includes​(String name)
        Returns whether the given path name should be included in the fields
      • runIf

        public void runIf​(String field,
                          Runnable runnable)
        Runs the given runnable only if the specified field is included. Otherwise it's a no-op.