chore: removed lombok and upgraded copyright
This commit is contained in:
@@ -25,8 +25,7 @@ package com.onixbyte.guid;
|
||||
* </p>
|
||||
*
|
||||
* <p><b>Example usage:</b></p>
|
||||
* <pre>
|
||||
* {@code
|
||||
* <pre>{@code
|
||||
* public class StringGuidCreator implements GuidCreator<String> {
|
||||
* private final AtomicLong counter = new AtomicLong();
|
||||
*
|
||||
@@ -43,8 +42,7 @@ package com.onixbyte.guid;
|
||||
* System.out.println("Generated GUID: " + guid);
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
* }</pre>
|
||||
*
|
||||
* @param <IdType> this represents the type of the Global Unique Identifier
|
||||
* @author Zihlu Wang
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2024-2025 OnixByte.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This package contains the custom exception classes related to GUID generation. These exceptions
|
||||
* are thrown when there are issues or errors during the generation or processing of global unique
|
||||
* identifiers (GUIDs).
|
||||
* <p>
|
||||
* The main exception class in this package is {@link com.onixbyte.guid.exceptions.TimingException},
|
||||
* which is a runtime exception and serves as the base exception for all other custom exceptions
|
||||
* related to GUID generation.
|
||||
* <p>
|
||||
* Custom exceptions in this package provide specific information about the type of error that
|
||||
* occurred during GUID generation, making it easier for developers to handle and respond to
|
||||
* different scenarios when dealing with GUIDs. They are designed to enhance the robustness and
|
||||
* reliability of the GUID generation process by providing clear and meaningful error messages to
|
||||
* the developers.
|
||||
* <p>
|
||||
* Developers using the GUID generation module should be aware of the possible exceptions that can
|
||||
* be thrown and handle them appropriately to ensure smooth operation and error handling in
|
||||
* their applications.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
package com.onixbyte.guid.exceptions;
|
||||
@@ -19,6 +19,8 @@ package com.onixbyte.guid.impl;
|
||||
|
||||
import com.onixbyte.guid.GuidCreator;
|
||||
import com.onixbyte.guid.exceptions.TimingException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
@@ -47,6 +49,8 @@ import java.time.ZoneId;
|
||||
*/
|
||||
public final class SnowflakeGuidCreator implements GuidCreator<Long> {
|
||||
|
||||
private final static Logger log = LoggerFactory.getLogger(SnowflakeGuidCreator.class);
|
||||
|
||||
/**
|
||||
* Constructs a SnowflakeGuidGenerator with the default start epoch and custom worker ID, data
|
||||
* centre ID.
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2024-2025 OnixByte.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The package provides a set of tools for generating globally unique identifiers (GUIDs).
|
||||
* <p>
|
||||
* The goal of this library is to provide an efficient, reliable way to generate globally unique
|
||||
* identifiers without requiring any specific environment or configuration.
|
||||
* <p>
|
||||
* Key features include:
|
||||
* <ul>
|
||||
* <li>Efficient generation of globally unique identifiers</li>
|
||||
* <li>High performance and quick response</li>
|
||||
* <li>Easy to integrate</li>
|
||||
* </ul>
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
package com.onixbyte.guid;
|
||||
Reference in New Issue
Block a user