This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.provider.spring.rest; | |
public class Page { | |
private int size; | |
private int totalElements; | |
private int totalPages; | |
private int number; | |
public Page() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Five or nine digit U.S. zipcodes. | |
public static final String REGEX_ZIP = "[^\\d{5}([\\-]?\\d{4})?$]"; | |
// Dates: 12/31/2014 | |
public static final String REGEX_DATE = "^(0[1-9]|1[012])[- \\/.](0[1-9]|[12][0-9]|3[01])[- \\/.](19|20)\\d\\d$"; | |
// Dates: 2014/12/31 | |
public static final String REGEX_DATE_DATA = "^(19|20)\\d\\d[- \\/.](0[1-9]|1[012])[- \\/.](0[1-9]|[12][0-9]|3[01])$"; | |
// Integers |
NewerOlder