Interface PridValidator<T>
-
public interface PridValidator<T>This interface provide method for PRID validation.- Since:
- 1.0.0
- Author:
- Abhishek Kumar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidateId(String id, int pridLength, int sequenceLimit, int repeatingLimit, int blockLimit)Function to validate given IdbooleanvalidateId(T id)Function to validate given Id
-
-
-
Method Detail
-
validateId
boolean validateId(T id)
Function to validate given Id- Parameters:
id- The Id to validate- Returns:
- true if Id is valid
-
validateId
boolean validateId(String id, int pridLength, int sequenceLimit, int repeatingLimit, int blockLimit)
Function to validate given Id- Parameters:
id- the id to validatepridLength- prid length to validatesequenceLimit- sequence in prid to limitrepeatingLimit- repeating limitblockLimit- repeating block limit- Returns:
- true if Id is valid
-
-