Class DatabaseObjects<T extends DatabaseObject>

java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
com.example.skeddly.business.database.DatabaseObjects<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>

public class DatabaseObjects<T extends DatabaseObject> extends ArrayList<T>
DatabaseObjects are an ArrayList of DatabaseObject
See Also:
  • Constructor Details

    • DatabaseObjects

      public DatabaseObjects()
      No-Arg Constructor for DatabaseObjects
    • DatabaseObjects

      public DatabaseObjects(Class<T> parameter)
      Constructor for DatabaseObjects
      Parameters:
      parameter - The class stored in the list
    • DatabaseObjects

      public DatabaseObjects(Class<T> parameter, int initialCapacity)
      Constructor for the DatabaseObjects
      Parameters:
      parameter - The class stored in the list
      initialCapacity - The initial capacity of the array
    • DatabaseObjects

      public DatabaseObjects(Class<T> parameter, @NonNull Collection<? extends T> c)
      Constructor for the DatabaseObjects with a collection
      Parameters:
      parameter - The class stored in the list
      c - The collection to copy from
  • Method Details

    • getIds

      public ArrayList<String> getIds()
      Returns the IDs of the objects in the array
      Returns:
      The IDs of the objects in the array
      See Also:
    • getParameter

      public Class<T> getParameter()