Change type of Window#windows from Set to List

This commit is contained in:
JeremyStar™ 2024-10-14 16:08:29 +02:00
parent 10e3b26ac0
commit b3ef38b6be
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -30,9 +30,7 @@ import lombok.Setter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import java.util.HashSet; import java.util.*;
import java.util.Set;
import java.util.UUID;
/** /**
* Abstract class for implementing windows in a windowing API. * Abstract class for implementing windows in a windowing API.
@ -43,16 +41,15 @@ import java.util.UUID;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
// TODO monitors
@Getter @Getter
@SuppressWarnings({ "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class Window implements AutoCloseable { public abstract class Window implements AutoCloseable {
/** /**
* A set of all active windows. * A set of all active windows.
* *
* @since v1-alpha0 * @since v1-alpha6
*/ */
private static final @NotNull Set<@NotNull Window> windows = new HashSet<>(); private static final @NotNull List<@NotNull Window> windows = new ArrayList<>();
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.