This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds documentation and extra test cases to Lithuanian LicensePlate
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
package net.contargo.types.truck; | ||
|
||
/** | ||
* Can handle Lithuanian {@link LicensePlate}s. | ||
* | ||
* <p>Examples of Lithuanian license plates:</p> | ||
* | ||
* <ul> | ||
* <li>KRK 365</li> | ||
* <li>DFZ 289</li> | ||
* </ul> | ||
* | ||
* <p>For more more information: <a href="https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Lithuania" ></a> | ||
* </p> | ||
* | ||
* <p>Lithiuania also allows so called vanity plates. Those are not correctly validated, as they don't follow the | ||
* structure of a normal license plate.</p> | ||
* | ||
* @author Marius van Herpen - [email protected] | ||
*/ | ||
public class LithuanianLicensePlateHandler implements LicensePlateHandler { | ||
|
@@ -35,7 +50,6 @@ public String normalize(String value) { | |
* | ||
* @return {@code true} if the given {@link LicensePlate} is valid, else {@code false} | ||
*/ | ||
|
||
@Override | ||
public boolean validate(String value) { | ||
|
||
|
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