diff --git a/src/main/java/cactusServer/models/Accounts.java b/src/main/java/cactusServer/models/Accounts.java index 5a42252..12b953d 100644 --- a/src/main/java/cactusServer/models/Accounts.java +++ b/src/main/java/cactusServer/models/Accounts.java @@ -9,10 +9,11 @@ @Singleton public class Accounts { + public static final int ACCOUNT_NUM_MAX = 10000; private static Accounts theInstance = null; - private ArrayList accounts = new ArrayList<>(10000); - private HashSet userIDSet = new HashSet<>(10000); - private HashSet uniqueIDSet = new HashSet<>(10000); + private ArrayList accounts = new ArrayList<>(ACCOUNT_NUM_MAX); + private HashSet userIDSet = new HashSet<>(ACCOUNT_NUM_MAX); + private HashSet uniqueIDSet = new HashSet<>(ACCOUNT_NUM_MAX); private URIAddressedEntity session; private Accounts() {