MCPcopy Create free account

hub / github.com/CSC207-UofT/207-course-notes / functions

Functions161 in github.com/CSC207-UofT/207-course-notes

↓ 28 callersMethodadd
(FoodItem it, int quant)
code/design_patterns/structural/facade/Bill.java:33
↓ 16 callersMethodsize
Reports the size of this Monster. @return the size of this Monster.
code/Monster.java:202
↓ 8 callersMethodprint
(Bill bill)
code/design_patterns/structural/facade/BillPrinter.java:20
↓ 5 callersMethodeat
Puts Monster m in this Monster's belly, as long as this Monster's belly has room and m's belly is empty. @param m the Monster to be eaten. @return tr
code/Monster.java:255
↓ 4 callersMethodaddBooks
(Author author, Map<String, String> bookInfo)
code/design_patterns/behavioural/strategy/without_strategy/Main.java:60
↓ 4 callersMethodcompareTo
(Book o)
code/design_patterns/behavioural/strategy/without_strategy/Book.java:42
↓ 4 callersMethoddisplayBooks
Displays the books of this author. The books of an author can be displayed in different ways (e.g., ascending order and descending order). Therefore,
code/design_patterns/behavioural/strategy/without_strategy/Author.java:60
↓ 4 callersMethodgetTradeHistory
()
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:39
↓ 4 callersMethodsetOwner
(String owner)
code/design_patterns/structural/adapter/Ticket.java:24
↓ 4 callersMethodsortBooks
Sorts this author's books. There are different algorithms for sorting books of an author (e.g., Insertion Sort and Selection Sort). Therefore, leaving
code/design_patterns/behavioural/strategy/without_strategy/Author.java:53
↓ 3 callersMethoddisplayBooks
()
code/design_patterns/behavioural/strategy/with_strategy/Author.java:80
↓ 3 callersMethoddraw
()
code/design_patterns/creational/factory/shapes/Shape.java:5
↓ 3 callersMethodgetItem
()
code/design_patterns/structural/facade/OrderItem.java:13
↓ 3 callersMethodgetName
()
code/design_patterns/structural/facade/FoodItem.java:14
↓ 3 callersMethodgetOrderItems
()
code/design_patterns/structural/facade/Bill.java:28
↓ 3 callersMethodgetTradeHistory
()
code/design_patterns/structural/adapter/ClassTicketAdapter.java:36
↓ 3 callersMethodupdateLocation
Sets this Parcel's location to newLocation and calls the locationChanged method. @param newLocation This Parcel's new location.
code/design_patterns/behavioural/observer/without_observer/Parcel.java:60
↓ 3 callersMethodupdateLocation
Sets this Parcel's location to newLocation and notifies its observers. @param newLocation This Parcel's new location.
code/design_patterns/behavioural/observer/with_observer/Parcel.java:57
↓ 2 callersMethodaddBooks
(Author author, Map<String, String> bookInfo)
code/design_patterns/behavioural/strategy/with_strategy/Main.java:73
↓ 2 callersMethodaddObserver
Add a new observer to observe the changes to this parcel. @param observer the observer to associate with this parcel
code/design_patterns/behavioural/observer/with_observer/Parcel.java:48
↓ 2 callersMethodcompareTo
(Book o)
code/design_patterns/behavioural/strategy/with_strategy/Book.java:46
↓ 2 callersMethoddigest
Digests the contents of this Monster's belly. Its belly becomes empty, and the Monster burps. @return a "burp" String, with the number of u letters e
code/Monster.java:273
↓ 2 callersMethodequals
Returns true iff this Monster is equivalent to obj, meaning that they have the same name and size, and equivalent belly contents. @param obj the Obje
code/Monster.java:450
↓ 2 callersMethodgetID
()
code/design_patterns/structural/facade/Bill.java:22
↓ 2 callersMethodgetOwner
()
code/design_patterns/structural/adapter/Ticket.java:28
↓ 2 callersMethodgetPrice
()
code/design_patterns/structural/facade/FoodItem.java:19
↓ 2 callersMethodgetQuantity
()
code/design_patterns/structural/facade/OrderItem.java:17
↓ 2 callersMethodgetTotal
()
code/design_patterns/structural/facade/Bill.java:45
↓ 2 callersMethodlog
(Bill bill)
code/design_patterns/structural/facade/BillLogger.java:21
↓ 2 callersMethodsetDisplayer
Set the displayer for this author.
code/design_patterns/behavioural/strategy/with_strategy/Author.java:69
↓ 2 callersMethodsetOwner
(String owner)
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:25
↓ 2 callersMethodsetSorter
Sets the sorter for this author.
code/design_patterns/behavioural/strategy/with_strategy/Author.java:62
↓ 2 callersMethodsortBooks
Sorts this Author's books.
code/design_patterns/behavioural/strategy/with_strategy/Author.java:76
↓ 2 callersMethodupdate
Receive update notification from parcel objects. @param sourceObject the parcel that is the object whose property has changed. @param propertyName the
code/design_patterns/behavioural/observer/without_observer/Company.java:31
↓ 1 callersMethodaddBook
Adds book to this Author's list of books. @param book a book to be added to this Author's books
code/design_patterns/behavioural/strategy/with_strategy/Author.java:54
↓ 1 callersMethodaddBook
Adds book to this Author's list of books. @param book a book to be added to this Author's books
code/design_patterns/behavioural/strategy/without_strategy/Author.java:44
↓ 1 callersMethodaddCheese
()
code/design_patterns/creational/builder/with_builder/PizzaBuilder.java:13
↓ 1 callersMethodaddPepperoni
()
code/design_patterns/creational/builder/with_builder/PizzaBuilder.java:18
↓ 1 callersMethodaddToHistory
(String event)
code/design_patterns/structural/adapter/ClassTicketAdapter.java:32
↓ 1 callersMethodaddToHistory
(String event)
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:35
↓ 1 callersMethodbuild
()
code/design_patterns/creational/builder/with_builder/PizzaBuilder.java:23
↓ 1 callersMethodburp
Returns the string "burp", but with the "u" repeated n times. @param n number of times to repeat the "u". @return a "burp" string.
code/Monster.java:333
↓ 1 callersMethodcalculateTotal
(Bill bill)
code/design_patterns/structural/facade/BillCalculator.java:6
↓ 1 callersMethodcalculateTotal
()
code/design_patterns/structural/facade/with_facade/BillFacade.java:33
↓ 1 callersMethodcreateFile
()
code/design_patterns/structural/facade/BillLogger.java:26
↓ 1 callersMethoddisplay
Displays a list of items.
code/design_patterns/behavioural/strategy/display_strategies/Displayer.java:10
↓ 1 callersMethodgetShape
()
code/design_patterns/creational/factory/with_abstract_factory/shape_factories/CircleFactory.java:7
↓ 1 callersMethodgetShape
(String type)
code/design_patterns/creational/factory/with_simple_factory/SimpleShapeFactory.java:10
↓ 1 callersMethodgetTradeHistory
()
code/design_patterns/structural/adapter/Tradable.java:11
↓ 1 callersMethodissueBill
()
code/design_patterns/structural/facade/with_facade/BillFacade.java:27
↓ 1 callersMethodlocationChanged
This method is responsible for updating all the classes for which the location of the parcel is important.
code/design_patterns/behavioural/observer/without_observer/Parcel.java:72
↓ 1 callersMethodlogBill
()
code/design_patterns/structural/facade/with_facade/BillFacade.java:38
↓ 1 callersMethodpopulation
Reports the population of Monsters created so far. @return the number of Monsters that have been constructed.
code/Monster.java:533
↓ 1 callersMethodprintBill
()
code/design_patterns/structural/facade/with_facade/BillFacade.java:42
↓ 1 callersMethodsetCompany
(Company comp)
code/design_patterns/behavioural/observer/without_observer/Parcel.java:45
↓ 1 callersMethodsetCustomer
(Customer cust)
code/design_patterns/behavioural/observer/without_observer/Parcel.java:41
↓ 1 callersMethodsetName
Sets this Author's name to name. @param name this Author's new name
code/design_patterns/behavioural/strategy/with_strategy/Author.java:45
↓ 1 callersMethodsetName
Sets this Author's name to name. @param name this Author's new name
code/design_patterns/behavioural/strategy/without_strategy/Author.java:35
↓ 1 callersMethodsetSize
(String size)
code/design_patterns/creational/builder/with_builder/PizzaBuilder.java:8
↓ 1 callersMethodsetTotal
(double total)
code/design_patterns/structural/facade/Bill.java:39
↓ 1 callersMethodsort
Sorts the items in list in non-decreasing order.
code/design_patterns/behavioural/strategy/sort_strategies/Sorter.java:10
↓ 1 callersMethodtoString
()
code/design_patterns/structural/facade/FoodItem.java:24
↓ 1 callersMethodtrade
(String newOwner)
code/design_patterns/structural/adapter/Tradable.java:7
↓ 1 callersMethodtrade
(String newOwner)
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:29
↓ 1 callersMethodtradeUndo
()
code/design_patterns/structural/adapter/Tradable.java:9
↓ 1 callersMethodtradeUndo
()
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:43
↓ 1 callersMethodwriteInFile
(Bill bill)
code/design_patterns/structural/facade/BillLogger.java:35
MethodAuthor
Constructs a new Author named name that uses sorting strategy sorter to sort books. @param name the name of the new Author @param sorter the sortin
code/design_patterns/behavioural/strategy/with_strategy/Author.java:24
MethodAuthor
Constructs a new Author named name @param name the name of the new Author
code/design_patterns/behavioural/strategy/without_strategy/Author.java:16
MethodAuthorWithInsertionSortAndNaturalOrderDisplay
(String name)
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithInsertionSortAndNaturalOrderDisplay.java:5
MethodAuthorWithInsertionSortAndReverseOrderDisplay
(String name)
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithInsertionSortAndReverseOrderDisplay.java:6
MethodAuthorWithSelectionSortAndNaturalOrderDisplay
(String name)
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithSelectionSortAndNaturalOrderDisplay.java:6
MethodAuthorWithSelectionSortAndReverseOrderDisplay
(String name)
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithSelectionSortAndReverseOrderDisplay.java:5
MethodBill
(int id)
code/design_patterns/structural/facade/Bill.java:15
MethodBillFacade
()
code/design_patterns/structural/facade/with_facade/BillFacade.java:12
MethodBillLogger
()
code/design_patterns/structural/facade/BillLogger.java:16
MethodBillPrinter
()
code/design_patterns/structural/facade/BillPrinter.java:16
MethodBook
Constructs a new Book named title with ISBN number isbn. @param title the new Book's title @param isbn the new Book's ISBN number
code/design_patterns/behavioural/strategy/with_strategy/Book.java:14
MethodBook
Constructs a new Book named title with ISBN number isbn. @param title the new Book's title @param isbn the new Book's ISBN number
code/design_patterns/behavioural/strategy/without_strategy/Book.java:13
MethodClassTicketAdapter
(String id, String show, LocalDateTime date, String seat)
code/design_patterns/structural/adapter/ClassTicketAdapter.java:17
MethodCompany
Construct a new Company with a given name. @param name This Company's name.
code/design_patterns/behavioural/observer/without_observer/Company.java:19
MethodCompany
Construct a new Company with a given name. @param name This Company's name.
code/design_patterns/behavioural/observer/with_observer/Company.java:21
MethodCustomer
Construct a new Customer with a given name. @param name The new Customer's name.
code/design_patterns/behavioural/observer/without_observer/Customer.java:18
MethodCustomer
Construct a new Customer with a given name. @param name The new Customer's name.
code/design_patterns/behavioural/observer/with_observer/Customer.java:21
MethodFoodItem
(String it, double price)
code/design_patterns/structural/facade/FoodItem.java:8
MethodMonster
Creates a new Monster. @param name the name of this Monster. @param size the size of this Monster. @param bellyCapacity the number
code/Monster.java:112
MethodObjectTicketAdapter
(Ticket ticket)
code/design_patterns/structural/adapter/ObjectTicketAdapter.java:20
MethodOrderItem
(FoodItem item, int quantity)
code/design_patterns/structural/facade/OrderItem.java:8
MethodParcel
Constructs a new Parcel with the given tracking number and location. @param trackingNumber This Parcel's tracking number. @param location This
code/design_patterns/behavioural/observer/without_observer/Parcel.java:35
MethodParcel
Constructs a new Parcel with the given tracking number and location. @param trackingNumber This parcel's tracking number. @param location This
code/design_patterns/behavioural/observer/with_observer/Parcel.java:32
MethodPizza
(String size)
code/design_patterns/creational/builder/without_builder/Pizza.java:9
MethodPizza
(String size, boolean cheese, boolean pepperoni)
code/design_patterns/creational/builder/with_builder/Pizza.java:9
MethodTicket
(String id, String show, LocalDateTime date, String seat)
code/design_patterns/structural/adapter/Ticket.java:17
MethodactionPerformed
(ActionEvent e)
code/gui/ButtonClickExample.java:27
Methoddisplay
Displays items of the list in reverse order.
code/design_patterns/behavioural/strategy/display_strategies/ReverseOrderDisplayer.java:10
Methoddisplay
Displays items of the list in natural order.
code/design_patterns/behavioural/strategy/display_strategies/NaturalOrderDisplayer.java:10
MethoddisplayBooks
()
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithInsertionSortAndReverseOrderDisplay.java:33
MethoddisplayBooks
()
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithSelectionSortAndNaturalOrderDisplay.java:40
MethoddisplayBooks
()
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithSelectionSortAndReverseOrderDisplay.java:38
MethoddisplayBooks
()
code/design_patterns/behavioural/strategy/without_strategy/AuthorWithInsertionSortAndNaturalOrderDisplay.java:32
next →1–100 of 161, ranked by callers