Class ExampleMethodService


  • public class ExampleMethodService
    extends Object
    Description: class with annotated methods to demonstrate method-level-validation
    • Constructor Detail

      • ExampleMethodService

        public ExampleMethodService()
      • ExampleMethodService

        public ExampleMethodService​(@NotNull @NotEmpty
                                    @NotNull @NotEmpty String s1,
                                    @NotNull
                                    @NotNull String s2)
    • Method Detail

      • concat

        @NotNull
        @NotEmpty
        public @NotNull @NotEmpty String concat​(@NotNull @NotEmpty
                                                @NotNull @NotEmpty String s1,
                                                @NotNull
                                                @NotNull String s2)
      • save

        public void save​(@Pattern(regexp="[a-f0-9]{4}")
                         @Pattern(regexp="[a-f0-9]{4}") String data)
      • echo

        @NotNull
        @Size(min=3,
              max=10)
        public @NotNull @Size(min=3,max=10) String echo​(@NotNull @Size(min=3,max=10)
                                                        @NotNull @Size(min=3,max=10) String str)