Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ACTION - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Action.
- ADVENTURE - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Adventure.
- age() - Method in record class cs1302.oracle.model.Person
-
Returns the value of the
age
record component. - ANIMATION - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Animation.
- apply(Movie) - Method in interface cs1302.oracle.model.Movie.Mapper
-
Applies this function to the supplied
Movie
argument. - apply(Person) - Method in interface cs1302.oracle.model.Person.Mapper
-
Applies this function to the supplied
Person
argument. - asString(Node<Type>) - Static method in class cs1302.gen.Node
-
Returns a string representation of the linked list starting with this node using Node.asString(node, Object::toString).
- asString(Node<Type>, Function<Type, String>) - Static method in class cs1302.gen.Node
-
Returns a string representation of the linked list starting with this node.
B
- BIOGRAPHY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Biography.
- by(Movie.Mapper<R>) - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the results of applying the givenmapper
function to the person objects under comparison. - by(Person.Mapper<R>) - Static method in class cs1302.oracle.model.Person.Order
-
Returns a comparator for
Person
objects that performs comparisons using the natural ordering of the results of applying the givenmapper
function to the person objects under comparison. - byAge() - Static method in class cs1302.oracle.model.Person.Order
-
Returns a comparator for
Person
objects that performs comparisons using the natural ordering of the age values of the person objects under comparison. - byName() - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the name values of the movie objects under comparison. - byName() - Static method in class cs1302.oracle.model.Person.Order
-
Returns a comparator for
Person
objects that performs comparisons using the natural ordering of the name values of the person objects under comparision. - byRating() - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the rating values of the movie objects under comparison. - byRuntime() - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the runtime values of the movie objects under comparison. - byTagline() - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the tagline values of the movie objects under comparison. - byYear() - Static method in class cs1302.oracle.model.Movie.Order
-
Returns a comparator for
Movie
objects that performs comparisons using the natural ordering of the year values of the movie objects under comparison.
C
- cast() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
cast
record component. - clear() - Method in interface cs1302.gen.Queue
-
Removes all items from this queue.
- clear() - Method in interface cs1302.gen.UrgencyQueue
-
Removes all items from this urgency queue.
- clear() - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- clear() - Method in class cs1302.oracle.OracleQueue
- COMEDY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Comedy.
- compareTo(Person) - Method in record class cs1302.oracle.model.Person
- CRIME - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Crime.
- cs1302.gen - package cs1302.gen
-
Provides interfaces for generic data types.
- cs1302.oracle - package cs1302.oracle
-
Provides sample "oracle" implementations for various data types.
- cs1302.oracle.model - package cs1302.oracle.model
-
Provides example classes to model real-world objects.
- cs1302uga.gen - module cs1302uga.gen
D
- dequeue() - Method in interface cs1302.gen.Queue
-
Removes and examines the first item in this queue.
- dequeue() - Method in interface cs1302.gen.UrgencyQueue
-
Retrieves and removes the most urgent item in this urgency queue.
- dequeue() - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- dequeue() - Method in class cs1302.oracle.OracleQueue
- dequeue(Consumer<T>) - Method in interface cs1302.gen.Queue
-
Removes the first item in this queue, then performs the given action on that item.
- dequeue(Consumer<Type>) - Method in interface cs1302.gen.UrgencyQueue
-
Removes the most urgent item in this urgency queue and performs the given action on the removed item.
- dequeue(Consumer<Type>) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- dequeue(Consumer<Type>) - Method in class cs1302.oracle.OracleQueue
- dequeueMany(int) - Method in interface cs1302.gen.Queue
-
Builds and returns a new queue that contains the first
num
items dequeued from this queue. - dequeueMany(int) - Method in interface cs1302.gen.UrgencyQueue
-
Builds and returns a new urgency queue that contains the most urgent
num
items dequeued from thisUrgencyQueue
. - dequeueMany(int) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- dequeueMany(int) - Method in class cs1302.oracle.OracleLinkedUrgencyQueue
- dequeueMany(int) - Method in class cs1302.oracle.OracleQueue
- dequeueMany(int, Consumer<T>) - Method in interface cs1302.gen.Queue
-
Removes the most urgent
num
items in this queue and performs the given action (usingaction.accept
) on each item. - dequeueMany(int, Consumer<Type>) - Method in interface cs1302.gen.UrgencyQueue
-
Removes the most urgent
num
-many items in this urgency queue and performs the given action (usingaction.accept
) on each item, in the urgency queue. - dequeueMany(int, Consumer<Type>) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- dequeueMany(int, Consumer<Type>) - Method in class cs1302.oracle.OracleQueue
- directors() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
directors
record component. - DRAMA - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Drama.
E
- enqueue(T) - Method in interface cs1302.gen.Queue
-
Inserts the specified item into this queue.
- enqueue(Type) - Method in interface cs1302.gen.UrgencyQueue
-
Inserts the specified item into this urgency queue.
- enqueue(Type) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- enqueue(Type) - Method in class cs1302.oracle.OracleLinkedUrgencyQueue
- enqueue(Type) - Method in class cs1302.oracle.OracleQueue
-
Inserts the specified item into the back of this queue, making it the last item.
- enqueueAll(Iterable<S>) - Method in interface cs1302.gen.Queue
-
Enqueues the items contained in the specified
Iterable
into this queue. - enqueueAll(Iterable<SubType>) - Method in interface cs1302.gen.UrgencyQueue
-
Enqueues the items contained in the specified
Iterable
into this urgency queue. - enqueueAll(Iterable<SubType>) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- enqueueAll(Iterable<SubType>) - Method in class cs1302.oracle.OracleQueue
- equals(Object) - Method in record class cs1302.oracle.model.Movie
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cs1302.oracle.model.Movie.Member
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cs1302.oracle.model.Person
-
Indicates whether some other object is "equal to" this one.
F
- FAMILY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Family.
- FANTASY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Fantasy.
- FILM_NOIR - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Film-Noir.
- filter(Predicate<T>) - Method in interface cs1302.gen.Queue
-
Builds and returns a new queue consisting of the items of this queue that pass the test specified by the given predicate.
- filter(Predicate<Type>) - Method in interface cs1302.gen.UrgencyQueue
-
Builds and returns a new urgency queue consisting of the items of this urgency queue that pass the test specified by the given predicate.
- filter(Predicate<Type>) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- filter(Predicate<Type>) - Method in class cs1302.oracle.OracleLinkedUrgencyQueue
- filter(Predicate<Type>) - Method in class cs1302.oracle.OracleQueue
G
- genres() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
genres
record component. - getItem() - Method in class cs1302.gen.Node
-
Returns the item in this node.
- getNext() - Method in class cs1302.gen.Node
-
Returns the next node.
H
- hashCode() - Method in record class cs1302.oracle.model.Movie
-
Returns a hash code value for this object.
- hashCode() - Method in record class cs1302.oracle.model.Movie.Member
-
Returns a hash code value for this object.
- hashCode() - Method in record class cs1302.oracle.model.Person
-
Returns a hash code value for this object.
- hasNext() - Method in class cs1302.gen.Node
-
Returns
true
when the next node is set. - HISTORY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
History.
- HORROR - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Horror.
I
- IMDB_TOP_MOVIES - Static variable in class cs1302.oracle.model.Movie.Data
-
An unmodifiable list containing a subset of the IMDb Top Movies Dataset.
L
- label() - Method in enum class cs1302.oracle.model.Movie.Genre
-
Returns the human-readable
label
for this genre.
M
- Member(String) - Constructor for record class cs1302.oracle.model.Movie.Member
-
Creates an instance of a
Member
record class. - Movie - Record Class in cs1302.oracle.model
-
Represents a "movie" record.
- Movie(String, Year, int, List<Movie.Genre>, Duration, String, Set<Movie.Member>, Set<Movie.Member>, Set<Movie.Member>) - Constructor for record class cs1302.oracle.model.Movie
-
Creates an instance of a
Movie
record class. - Movie.Data - Class in cs1302.oracle.model
-
Sample data related to movies.
- Movie.Genre - Enum Class in cs1302.oracle.model
-
Represents a movie genre.
- Movie.Mapper<R> - Interface in cs1302.oracle.model
-
Represents a function that accepts one
Movie
argument and produces a result. - Movie.Member - Record Class in cs1302.oracle.model
-
Represents a "member" record.
- Movie.Order - Class in cs1302.oracle.model
-
Implementations of
Comparable<Movie>
that impose various orderings. - movies() - Static method in class cs1302.oracle.model.Movie.Data
-
Returns a random permutation of
Movie.Data.IMDB_TOP_MOVIES
as a new modifiable list. - MUSIC - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Music.
- MUSICAL - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Musical.
- MYSTERY - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Mystery.
N
- name() - Method in record class cs1302.oracle.model.Movie.Member
-
Returns the value of the
name
record component. - name() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
name
record component. - name() - Method in record class cs1302.oracle.model.Person
-
Returns the value of the
name
record component. - names() - Static method in class cs1302.oracle.model.Person.Data
-
Returns a random permutation of
Person.Data.SSA_TOP_NAMES
as a new modifiable list. - naturally() - Static method in class cs1302.oracle.model.Person.Order
-
Returns a comparator for
Person
objects that performs comparisons according to the natural ordering of the person objects under comparision. - Node<Type> - Class in cs1302.gen
-
A node for an item in a linked list data structure.
- Node(Type) - Constructor for class cs1302.gen.Node
-
Construct a node with the specified
item
but no next node. - Node(Type, Node<Type>) - Constructor for class cs1302.gen.Node
-
Construct a node with the specified
item
andnext
.
O
- OracleCustomLinkedUrgencyQueue<Type> - Class in cs1302.oracle
-
An "oracle" implementation of
UrgencyQueue
that uses a linked list ofNode
objects to maintain its "line" of items and requires a Comparator Constructor Parameter so that it can compare items. - OracleCustomLinkedUrgencyQueue(Comparator<Type>) - Constructor for class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- OracleLinkedUrgencyQueue<Type extends Comparable<Type>> - Class in cs1302.oracle
-
An "oracle" implementation of
UrgencyQueue
that uses a linked list ofNode
objects to maintain its "line" of items and imposes a Comparable Upper Bound so that it can compare items. - OracleLinkedUrgencyQueue() - Constructor for class cs1302.oracle.OracleLinkedUrgencyQueue
-
Construct an
OracleLinkedUrgencyQueue
. - OracleQueue<Type> - Class in cs1302.oracle
- OracleQueue() - Constructor for class cs1302.oracle.OracleQueue
-
Construct an empty
OracleQueue<T>
.
P
- peek() - Method in interface cs1302.gen.Queue
-
Examines the first item in this queue.
- peek() - Method in interface cs1302.gen.UrgencyQueue
-
Retrieves, but does not remove, the most urgent item in this urgency queue.
- peek() - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- peek() - Method in class cs1302.oracle.OracleQueue
- people() - Static method in class cs1302.oracle.model.Person.Data
-
Returns a new, random, and modifiable list of people with names from
Person.Data.SSA_TOP_NAMES
. - Person - Record Class in cs1302.oracle.model
- Person(int, String) - Constructor for record class cs1302.oracle.model.Person
-
Creates an instance of a
Person
record class. - Person.Data - Class in cs1302.oracle.model
-
Sample data related to people.
- Person.Mapper<R> - Interface in cs1302.oracle.model
-
Represents a function that accepts one
Person
argument and produces a result. - Person.Order - Class in cs1302.oracle.model
-
Implementations of
Comparable<Person>
that impose various orderings.
Q
R
- rating() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
rating
record component. - ROMANCE - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Romance.
- runtime() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
runtime
record component.
S
- SCI_FI - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Sci-Fi.
- setItem(Type) - Method in class cs1302.gen.Node
-
Sets the item in this node.
- setNext(Node<Type>) - Method in class cs1302.gen.Node
-
Sets the next node.
- size() - Method in interface cs1302.gen.Queue
-
Return the number of items in this queue.
- size() - Method in interface cs1302.gen.UrgencyQueue
-
Returns the number of items in this urgency queue.
- size() - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- size() - Method in class cs1302.oracle.OracleQueue
- SPORT - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Sport.
- SSA_TOP_NAMES - Static variable in class cs1302.oracle.model.Person.Data
-
An unmodifiable list containing the 100 most popular given names for both male and female babies that appeared on Social Security card appliations submitted to the United States Social Security Administration (SSA) between 1922 and 2021.
- stream() - Static method in enum class cs1302.oracle.model.Movie.Genre
-
Returns a sequential
Stream<Genre>
over all the values of this enum type.
T
- tagline() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
tagline
record component. - THRILLER - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Thriller.
- toArray(IntFunction<T[]>) - Method in interface cs1302.gen.Queue
-
Returns an array containing all of the objects in this queue in proper sequence (from first to last element, by urgency).
- toArray(IntFunction<Type[]>) - Method in interface cs1302.gen.UrgencyQueue
-
Returns an array containing all of the objects in this
UrgencyQueue
in proper sequence (from first to last element, by urgency). - toArray(IntFunction<Type[]>) - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- toArray(IntFunction<Type[]>) - Method in class cs1302.oracle.OracleQueue
- toGenre(String) - Static method in enum class cs1302.oracle.model.Movie.Genre
-
Returns the enum constant of this class with the specified label.
- toGenreList(String...) - Static method in enum class cs1302.oracle.model.Movie.Genre
-
Returns an unmodifiable list of genres with the specified labels.
- toMemberSet(String...) - Static method in record class cs1302.oracle.model.Movie.Member
-
Returns an unmodifiable set of members with the supplied names.
- toString() - Method in interface cs1302.gen.Queue
-
Returns a string representation of this queue.
- toString() - Method in interface cs1302.gen.UrgencyQueue
-
Returns a string representation of this urgency queue.
- toString() - Method in record class cs1302.oracle.model.Movie.Member
-
Returns a string representation of this record class.
- toString() - Method in record class cs1302.oracle.model.Movie
-
Returns a string representation of this record class.
- toString() - Method in record class cs1302.oracle.model.Person
-
Returns a string representation of this record class.
- toString() - Method in class cs1302.oracle.OracleCustomLinkedUrgencyQueue
- toString() - Method in class cs1302.oracle.OracleQueue
U
- UrgencyQueue<Type> - Interface in cs1302.gen
-
An abstract data type that defines urgency-based queue operations.
V
- valueOf(String) - Static method in enum class cs1302.oracle.model.Movie.Genre
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cs1302.oracle.model.Movie.Genre
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WAR - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
War.
- WESTERN - Enum constant in enum class cs1302.oracle.model.Movie.Genre
-
Western.
- writers() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
writers
record component.
Y
- year() - Method in record class cs1302.oracle.model.Movie
-
Returns the value of the
year
record component.
All Classes and Interfaces|All Packages|Serialized Form