@Retention(value=RUNTIME) @Target(value=FIELD) public @interface RequireOnlyOne
By using the same tag across several annotated options you can state that you
require only one of those options to be present. If you require one/more from
some set of options you should instead use the less restrictive
RequireSome
. If you optionally require at most one from some set of
options you can use MutuallyExclusiveWith
instead.
public abstract String tag
Copyright © 2012–2017. All rights reserved.