isEmpty

open fun isEmpty(): Boolean(source)

The PatternSet is considered empty when no includes or excludes have been added. The Spec returned by getAsSpec method only contains the default excludes patterns in this case.

Return

true when no includes or excludes have been added to this instance