ApplicationConstants.java 715 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Andrew Grant of Carrick Software 11/03/2025, 19:54. All rights reserved.
  3. *
  4. */
  5. package scot.carricksoftware.grants.constants;
  6. import org.springframework.stereotype.Component;
  7. import java.time.format.DateTimeFormatter;
  8. @SuppressWarnings("unused")
  9. @Component
  10. public class ApplicationConstants {
  11. private ApplicationConstants() {
  12. // to stop checkstyle complaining
  13. }
  14. public static final int DEFAULT_PAGE_SIZE = 15;
  15. public static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("dd-MM-yyyy");
  16. public final static String EMPTY_STRING = "";
  17. public static final int MINIMUM_NAME_LENGTH = 3;
  18. public static final int MAXIMUM_NAME_LENGTH = 40;
  19. }