Class FullClassNameMatcher

java.lang.Object
org.apache.commons.io.serialization.FullClassNameMatcher
All Implemented Interfaces:
ClassNameMatcher

final class FullClassNameMatcher extends Object implements ClassNameMatcher
A ClassNameMatcher that matches on full class names.

This object is immutable and thread-safe.

  • Field Details

    • classesSet

      private final Set<String> classesSet
  • Constructor Details

    • FullClassNameMatcher

      public FullClassNameMatcher(String... classes)
      Constructs an object based on the specified class names.
      Parameters:
      classes - a list of class names
  • Method Details

    • matches

      public boolean matches(String className)
      Description copied from interface: ClassNameMatcher
      Returns true if the supplied class name matches this object's condition.
      Specified by:
      matches in interface ClassNameMatcher
      Parameters:
      className - fully qualified class name
      Returns:
      true if the class name matches this object's condition