/*
 * The MIT License
 *
 *   Copyright (c) 2016, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy
 *   of this software and associated documentation files (the "Software"), to deal
 *   in the Software without restriction, including without limitation the rights
 *   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *   copies of the Software, and to permit persons to whom the Software is
 *   furnished to do so, subject to the following conditions:
 *
 *   The above copyright notice and this permission notice shall be included in
 *   all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *   THE SOFTWARE.
 */

package io.github.benas.randombeans.util;

import java.time.ZoneId;
import java.time.ZonedDateTime;

import static java.time.ZonedDateTime.of;

/**
 * Constants class.
 *
 * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
 */
public interface Constants {

    /**
     * Reference date around which random dates will be generated.
     */
    ZonedDateTime REFERENCE_DATE = of(2020, 1, 1, 0, 0, 0, 0, ZoneId.of("UTC+1"));

    /**
     * Maximum collection size.
     */
    byte MAX_COLLECTION_SIZE = Byte.MAX_VALUE;

    /**
     * Maximum string size.
     */
    byte MAX_STRING_LENGTH = 32;

    /**
     * Default date range in which dates will be generated: [now - 10 years, now + 10 years].
     */
    int DEFAULT_DATE_RANGE = 10;
    /**
     * The date of ten years before {@link Constants#REFERENCE_DATE}.
     */
    ZonedDateTime TEN_YEARS_AGO = REFERENCE_DATE.minusYears(DEFAULT_DATE_RANGE);

    /**
     * The date of ten years after the {@link Constants#REFERENCE_DATE}.
     */
    ZonedDateTime IN_TEN_YEARS = REFERENCE_DATE.plusYears(DEFAULT_DATE_RANGE);
}

@@ -1269,18 +1269,25 @@
 ime.Zone
-I
 d
+DateTime
 ;%0Aimport
@@ -1301,25 +1301,18 @@
 ime.Zone
+I
 d
-DateTime
 ;%0A%0Aimpor
@@ -1454,17 +1454,22 @@
 lic 
-interface
+abstract class
  Con
@@ -1557,32 +1557,53 @@
 ed.%0A     */%0A    
+private static final 
 ZonedDateTime RE
@@ -1710,32 +1710,52 @@
 ze.%0A     */%0A    
+public static final 
 byte MAX_COLLECT
@@ -1830,16 +1830,36 @@
  */%0A    
+public static final 
 byte MAX
@@ -1994,16 +1994,36 @@
  */%0A    
+public static final 
 int DEFA
@@ -2125,32 +2125,52 @@
 E%7D.%0A     */%0A    
+public static final 
 ZonedDateTime TE
@@ -2324,16 +2324,36 @@
  */%0A    
+public static final 
 ZonedDat
@@ -2419,10 +2419,40 @@
 RANGE);%0A
+%0A    private Constants() %7B %7D%0A%0A
 %7D%0A

revert commit f8aa4373b0b2e715d48e52c78f1fcd66d4ff6a0b : Constants class should be a class and not an interface (Effective Jave - Item 19)