public final class SizeOperationValidator extends OperationValidator
FilterOperator.ALL
operator applied to it. Since this class does not need state, and the
methods can't be static because it implements an interface, it seems to be one of the few places where the Singleton pattern seems
appropriate.Modifier and Type | Method and Description |
---|---|
static SizeOperationValidator |
getInstance()
Get the instance
|
apply
public static SizeOperationValidator getInstance()
Copyright © 2016. All rights reserved.