Skip to content

Commit

Permalink
Update for package move
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 25, 2024
1 parent 858a35c commit cadf78b
Show file tree
Hide file tree
Showing 33 changed files with 75 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.context.CommandContext;
import java.time.Duration;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
Expand All @@ -32,6 +31,7 @@
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.immutables.value.Value;
import org.incendo.cloud.context.CommandContext;
import org.incendo.cloud.processors.cache.CloudCache;
import org.incendo.cloud.processors.immutables.StagedImmutableBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.Command;
import java.time.Instant;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.immutables.value.Value;
import org.incendo.cloud.Command;
import org.incendo.cloud.processors.immutables.ImmutableImpl;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.context.CommandContext;
import cloud.commandframework.execution.CommandExecutionHandler;
import java.util.Objects;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.context.CommandContext;
import org.incendo.cloud.execution.CommandExecutionHandler;

/**
* {@link CommandExecutionHandler} for {@link ConfirmationManager}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.Command;
import cloud.commandframework.execution.CommandExecutionHandler;
import cloud.commandframework.execution.postprocessor.CommandPostprocessor;
import cloud.commandframework.keys.CloudKey;
import java.time.Duration;
import java.time.Instant;
import java.util.Objects;
import java.util.Optional;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.execution.CommandExecutionHandler;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessor;
import org.incendo.cloud.key.CloudKey;
import org.incendo.cloud.processors.cache.CloudCache;

/**
Expand All @@ -45,7 +45,7 @@
public final class ConfirmationManager<C> implements Command.Builder.Applicable<C> {

/**
* {@link cloud.commandframework.meta.CommandMeta} key that indicates that the command requires a confirmation
* {@link org.incendo.cloud.meta.CommandMeta} key that indicates that the command requires a confirmation
* to be executed.
*/
public static final CloudKey<Boolean> META_CONFIRMATION_REQUIRED = CloudKey.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.execution.postprocessor.CommandPostprocessingContext;
import cloud.commandframework.execution.postprocessor.CommandPostprocessor;
import cloud.commandframework.services.types.ConsumerService;
import java.time.Instant;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessingContext;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessor;
import org.incendo.cloud.services.type.ConsumerService;

/**
* {@link CommandPostprocessor} for {@link ConfirmationManager}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
//
package org.incendo.cloud.processors.confirmation.annotations;

import cloud.commandframework.Command;
import cloud.commandframework.annotations.AnnotationParser;
import cloud.commandframework.annotations.BuilderModifier;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.annotations.AnnotationParser;
import org.incendo.cloud.annotations.BuilderModifier;
import org.incendo.cloud.processors.confirmation.ConfirmationManager;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* {@link cloud.commandframework.execution.postprocessor.CommandPostprocessor} that adds the ability
* {@link org.incendo.cloud.execution.postprocessor.CommandPostprocessor} that adds the ability
* to require commands to be confirmed before being executed.
*/
package org.incendo.cloud.processors.confirmation;
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.Command;
import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.CommandExecutionHandler;
import java.util.concurrent.CompletableFuture;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import org.incendo.cloud.Command;
import org.incendo.cloud.CommandManager;
import org.incendo.cloud.execution.CommandExecutionHandler;
import org.incendo.cloud.processors.cache.SimpleCache;
import org.incendo.cloud.processors.confirmation.util.TestCommandManager;
import org.incendo.cloud.processors.confirmation.util.TestCommandSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.confirmation.util;

import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.ExecutionCoordinator;
import cloud.commandframework.internal.CommandRegistrationHandler;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.CommandManager;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.internal.CommandRegistrationHandler;

public final class TestCommandManager extends CommandManager<TestCommandSender> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.Command;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.immutables.value.Value;
import org.incendo.cloud.Command;
import org.incendo.cloud.processors.immutables.StagedImmutableBuilder;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.Command;
import cloud.commandframework.context.CommandContext;
import java.time.Clock;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.immutables.value.Value;
import org.incendo.cloud.Command;
import org.incendo.cloud.context.CommandContext;
import org.incendo.cloud.processors.cooldown.listener.CooldownActiveListener;
import org.incendo.cloud.processors.cooldown.listener.CooldownCreationListener;
import org.incendo.cloud.processors.cooldown.profile.CooldownProfileFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.Command;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;

/**
* Groups cooldown together.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.execution.postprocessor.CommandPostprocessor;
import cloud.commandframework.keys.CloudKey;
import io.leangen.geantyref.TypeToken;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessor;
import org.incendo.cloud.key.CloudKey;

/**
* Manager for the cooldown system.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.execution.postprocessor.CommandPostprocessingContext;
import cloud.commandframework.execution.postprocessor.CommandPostprocessor;
import cloud.commandframework.services.types.ConsumerService;
import java.time.Duration;
import java.time.Instant;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessingContext;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessor;
import org.incendo.cloud.processors.cooldown.profile.CooldownProfile;
import org.incendo.cloud.services.type.ConsumerService;

/**
* {@link CommandPostprocessor} for {@link CooldownManager}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.cooldown;

import cloud.commandframework.context.CommandContext;
import java.time.Duration;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.context.CommandContext;

/**
* A function that generates a duration from a command context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
//
package org.incendo.cloud.processors.cooldown.annotations;

import cloud.commandframework.Command;
import cloud.commandframework.annotations.AnnotationParser;
import cloud.commandframework.annotations.BuilderModifier;
import java.time.Duration;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.annotations.AnnotationParser;
import org.incendo.cloud.annotations.BuilderModifier;
import org.incendo.cloud.processors.cooldown.CooldownGroup;
import org.incendo.cloud.processors.cooldown.DurationFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.cooldown.listener;

import cloud.commandframework.Command;
import java.time.Duration;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.processors.cooldown.CooldownInstance;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
//
package org.incendo.cloud.processors.cooldown.listener;

import cloud.commandframework.Command;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.processors.cooldown.CooldownInstance;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
//
package org.incendo.cloud.processors.cooldown.listener;

import cloud.commandframework.Command;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.processors.cooldown.CooldownGroup;
import org.incendo.cloud.processors.cooldown.CooldownInstance;
import org.incendo.cloud.processors.cooldown.CooldownRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* {@link cloud.commandframework.execution.postprocessor.CommandPostprocessor} that adds command cooldowns.
* {@link org.incendo.cloud.execution.postprocessor.CommandPostprocessor} that adds command cooldowns.
*/
package org.incendo.cloud.processors.cooldown;
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
//
package org.incendo.cloud.processors.confirmation;

import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.CommandExecutionHandler;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.HashMap;
import java.util.concurrent.CompletableFuture;
import org.incendo.cloud.CommandManager;
import org.incendo.cloud.execution.CommandExecutionHandler;
import org.incendo.cloud.processors.confirmation.util.TestCommandManager;
import org.incendo.cloud.processors.confirmation.util.TestCommandSender;
import org.incendo.cloud.processors.cooldown.Cooldown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.confirmation.util;

import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.ExecutionCoordinator;
import cloud.commandframework.internal.CommandRegistrationHandler;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.CommandManager;
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.internal.CommandRegistrationHandler;

public final class TestCommandManager extends CommandManager<TestCommandSender> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
package org.incendo.cloud.processors.requirements;

import cloud.commandframework.context.CommandContext;
import java.util.List;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.context.CommandContext;

/**
* A requirement for a command to be executed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
//
package org.incendo.cloud.processors.requirements;

import cloud.commandframework.Command;
import cloud.commandframework.keys.CloudKey;
import java.util.List;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.key.CloudKey;

/**
* Utility for adding {@link Requirements} to a {@link Command.Builder}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
//
package org.incendo.cloud.processors.requirements;

import cloud.commandframework.context.CommandContext;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.context.CommandContext;

/**
* Handler that gets invoked when a {@link Requirement requirement} is not met.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
//
package org.incendo.cloud.processors.requirements;

import cloud.commandframework.execution.postprocessor.CommandPostprocessingContext;
import cloud.commandframework.execution.postprocessor.CommandPostprocessor;
import cloud.commandframework.keys.CloudKey;
import cloud.commandframework.services.types.ConsumerService;
import java.util.Objects;
import org.apiguardian.api.API;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessingContext;
import org.incendo.cloud.execution.postprocessor.CommandPostprocessor;
import org.incendo.cloud.key.CloudKey;
import org.incendo.cloud.services.type.ConsumerService;

/**
* {@link CommandPostprocessor} that checks for {@link Requirement requirements} before the commands are executed.
Expand All @@ -46,7 +46,7 @@ public final class RequirementPostprocessor<C, R extends Requirement<C, R>> impl
*
* @param <C> command sender type
* @param <R> requirement type
* @param requirementKey key that is used to store the requirements in the {@link cloud.commandframework.meta.CommandMeta}
* @param requirementKey key that is used to store the requirements in the {@link org.incendo.cloud.meta.CommandMeta}
* @param failureHandler handler that gets invoked when a requirement is unmet
* @return the postprocessor
*/
Expand Down
Loading

0 comments on commit cadf78b

Please sign in to comment.