Skip to content

Commit

Permalink
Moved from com.voinearadu to com.voinearadu.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Voinea-Radu committed Oct 25, 2024
1 parent e569a29 commit 4d70d2e
Show file tree
Hide file tree
Showing 75 changed files with 192 additions and 178 deletions.
4 changes: 0 additions & 4 deletions src/main/java/com/voinearadu/event_manager/dto/IEvent.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.voinearadu.event_manager;
package com.voinearadu.utils.event_manager;

import com.voinearadu.event_manager.annotation.EventHandler;
import com.voinearadu.event_manager.dto.IEvent;
import com.voinearadu.logger.Logger;
import com.voinearadu.utils.event_manager.annotation.EventHandler;
import com.voinearadu.utils.event_manager.dto.IEvent;
import com.voinearadu.utils.logger.Logger;
import lombok.NoArgsConstructor;

import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.event_manager.annotation;
package com.voinearadu.utils.event_manager.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.voinearadu.utils.event_manager.dto;

public interface IEvent {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.event_manager.dto;
package com.voinearadu.utils.event_manager.dto;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.event_manager.dto;
package com.voinearadu.utils.event_manager.dto;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.voinearadu.file_manager;
package com.voinearadu.utils.file_manager;

import com.google.gson.Gson;
import com.voinearadu.file_manager.utils.DateUtils;
import com.voinearadu.file_manager.utils.PathUtils;
import com.voinearadu.lambda.lambda.ReturnLambdaExecutor;
import com.voinearadu.logger.Logger;
import com.voinearadu.utils.file_manager.utils.DateUtils;
import com.voinearadu.utils.file_manager.utils.PathUtils;
import com.voinearadu.utils.lambda.lambda.ReturnLambdaExecutor;
import com.voinearadu.utils.logger.Logger;
import lombok.SneakyThrows;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.dto;
package com.voinearadu.utils.file_manager.dto;

import com.google.gson.JsonDeserializer;
import com.google.gson.JsonSerializer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.voinearadu.file_manager.dto.gson;
package com.voinearadu.utils.file_manager.dto.gson;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.voinearadu.file_manager.dto.serializable.ISerializable;
import com.voinearadu.logger.Logger;
import com.voinearadu.reflections.Reflections;
import com.voinearadu.utils.file_manager.dto.serializable.ISerializable;
import com.voinearadu.utils.logger.Logger;
import com.voinearadu.utils.reflections.Reflections;
import lombok.Getter;
import lombok.SneakyThrows;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.voinearadu.file_manager.dto.gson;
package com.voinearadu.utils.file_manager.dto.gson;

import com.google.gson.*;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.file_manager.dto.serializable.SerializableList;
import com.voinearadu.logger.Logger;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.file_manager.dto.serializable.SerializableList;
import com.voinearadu.utils.logger.Logger;

import java.lang.reflect.Type;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.voinearadu.file_manager.dto.gson;
package com.voinearadu.utils.file_manager.dto.gson;

import com.google.gson.*;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.file_manager.dto.serializable.SerializableMap;
import com.voinearadu.logger.Logger;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.file_manager.dto.serializable.SerializableMap;
import com.voinearadu.utils.logger.Logger;

import java.lang.reflect.Type;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.voinearadu.file_manager.dto.gson;
package com.voinearadu.utils.file_manager.dto.gson;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.file_manager.dto.serializable.SerializableObject;
import com.voinearadu.logger.Logger;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.file_manager.dto.serializable.SerializableObject;
import com.voinearadu.utils.logger.Logger;

import java.lang.reflect.Type;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.voinearadu.utils.file_manager.dto.serializable;

public interface ISerializable {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.dto.serializable;
package com.voinearadu.utils.file_manager.dto.serializable;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.dto.serializable;
package com.voinearadu.utils.file_manager.dto.serializable;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.dto.serializable;
package com.voinearadu.utils.file_manager.dto.serializable;

public record SerializableObject<Object>(Class<Object> objectClass, Object object) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.utils;
package com.voinearadu.utils.file_manager.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.file_manager.utils;
package com.voinearadu.utils.file_manager.utils;

import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.voinearadu.generic;
package com.voinearadu.utils.generic;

import com.voinearadu.generic.dto.IWeighted;
import com.voinearadu.generic.dto.Range;
import com.voinearadu.utils.generic.dto.IWeighted;
import com.voinearadu.utils.generic.dto.Range;
import org.jetbrains.annotations.NotNull;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.generic.dto;
package com.voinearadu.utils.generic.dto;

public interface IWeighted {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.generic.dto;
package com.voinearadu.utils.generic.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.generic.dto;
package com.voinearadu.utils.generic.dto;

public record Pair<Value1, Value2>(Value1 value1, Value2 value2) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.generic.dto;
package com.voinearadu.utils.generic.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda;
package com.voinearadu.utils.lambda;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.voinearadu.lambda;
package com.voinearadu.utils.lambda;

import com.voinearadu.lambda.lambda.LambdaExecutor;
import com.voinearadu.utils.lambda.lambda.LambdaExecutor;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;

public interface ArgLambdaExecutor<A> {
void execute(A a);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;


public interface ArgsLambdaExecutor<A, B> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;

public interface LambdaExecutor {
void execute();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;


public interface ReturnArgLambdaExecutor<R, A> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;


public interface ReturnArgsLambdaExecutor<R, A, B> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.lambda.lambda;
package com.voinearadu.utils.lambda.lambda;


public interface ReturnLambdaExecutor<R> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.voinearadu.logger;
package com.voinearadu.utils.logger;

import com.voinearadu.lambda.lambda.ArgLambdaExecutor;
import com.voinearadu.lambda.lambda.ReturnArgLambdaExecutor;
import com.voinearadu.logger.dto.ConsoleColor;
import com.voinearadu.logger.utils.StackTraceUtils;
import com.voinearadu.utils.lambda.lambda.ArgLambdaExecutor;
import com.voinearadu.utils.lambda.lambda.ReturnArgLambdaExecutor;
import com.voinearadu.utils.logger.dto.ConsoleColor;
import com.voinearadu.utils.logger.utils.StackTraceUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.slf4j.event.Level;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.logger.dto;
package com.voinearadu.utils.logger.dto;

import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.logger.utils;
package com.voinearadu.utils.logger.utils;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.message_builder;
package com.voinearadu.utils.message_builder;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.message_builder;
package com.voinearadu.utils.message_builder;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.message_builder;
package com.voinearadu.utils.message_builder;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.message_builder;
package com.voinearadu.utils.message_builder;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.voinearadu.message_builder.data;
package com.voinearadu.utils.message_builder.data;

import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.message_builder.MessageBuilderList;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.message_builder.MessageBuilderList;

import java.lang.reflect.Type;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.voinearadu.message_builder.data;
package com.voinearadu.utils.message_builder.data;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.message_builder.MessageBuilder;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.message_builder.MessageBuilder;

import java.lang.reflect.Type;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.redis_manager;
package com.voinearadu.utils.redis_manager;

public class Executor {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.voinearadu.redis_manager;
package com.voinearadu.utils.redis_manager;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.voinearadu.event_manager.EventManager;
import com.voinearadu.file_manager.FileManager;
import com.voinearadu.message_builder.MessageBuilderManager;
import com.voinearadu.redis_manager.dto.RedisConfig;
import com.voinearadu.redis_manager.manager.DebugRedisManager;
import com.voinearadu.utils.event_manager.EventManager;
import com.voinearadu.utils.file_manager.FileManager;
import com.voinearadu.utils.message_builder.MessageBuilderManager;
import com.voinearadu.utils.redis_manager.dto.RedisConfig;
import com.voinearadu.utils.redis_manager.manager.DebugRedisManager;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.voinearadu.redis_manager.dto;
package com.voinearadu.utils.redis_manager.dto;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.voinearadu.redis_manager.dto;
package com.voinearadu.utils.redis_manager.dto;

import com.voinearadu.redis_manager.event.impl.ResponseEvent;
import com.voinearadu.redis_manager.manager.RedisManager;
import com.voinearadu.utils.redis_manager.event.impl.ResponseEvent;
import com.voinearadu.utils.redis_manager.manager.RedisManager;
import lombok.Getter;
import lombok.SneakyThrows;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.voinearadu.redis_manager.dto.gson;
package com.voinearadu.utils.redis_manager.dto.gson;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.voinearadu.file_manager.dto.GsonSerializer;
import com.voinearadu.logger.Logger;
import com.voinearadu.redis_manager.event.RedisRequest;
import com.voinearadu.redis_manager.manager.RedisManager;
import com.voinearadu.utils.file_manager.dto.GsonSerializer;
import com.voinearadu.utils.logger.Logger;
import com.voinearadu.utils.redis_manager.event.RedisRequest;
import com.voinearadu.utils.redis_manager.manager.RedisManager;

import java.lang.reflect.Type;

Expand Down
Loading

0 comments on commit 4d70d2e

Please sign in to comment.