net.stepniak.api.validator
Class SearchValidator

java.lang.Object
  extended by net.stepniak.api.validator.SearchValidator

public class SearchValidator
extends Object


Constructor Summary
SearchValidator(int page, int limit)
           
 
Method Summary
 int getLimit()
           
 int getPage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchValidator

public SearchValidator(int page,
                       int limit)
Method Detail

getPage

@Min(message="PARAM_PAGE_NUMBER",
     value=1L)
public int getPage()

getLimit

@Min(message="PARAM_PAGE_LIMIT",
     value=1L)
@Max(message="PARAM_PAGE_LIMIT",
     value=100L)
public int getLimit()


Copyright © 2013. All Rights Reserved.