Narendra Pathai
2aa9e78ddd
Minor refactorings and code style changes ( #807 )
...
* Made minor changes in some patterns such as removed throws clause where not needed, changed incorrect order of arguments in assertEquals
* Minor refactorings and code style changes. 1) Removed several use of raw types 2) Removed unnecessary throws clauses 3) Used lambda expressions wherever applicable 4) Used apt assertion methods for readability 5) Use of try with resources wherever applicable 6) Corrected incorrect order of assertXXX arguments
* Removed unused import from Promise
* Addressed review comments
* Addressed checkstyle issue
2018-10-23 13:45:41 +05:30
mxi1809
8458e426bc
correcting raw types for the item Iterator.
2018-08-29 07:36:52 -04:00
Mitchell Irvin
e6f84f2f41
modified return type of TreasureChestItemIterator's constructor to be Iterator
2018-08-28 07:46:02 -04:00
Mitchell Irvin
1c2ddfad54
Refactored App.java to remove duplicate code and elegantly demonstrate each implementation of the Iterator interface. Removed the redundant ItemIterator interface. Added insert() method to TreeNode class to allow for more elegant construction of BSTs.
2018-08-25 18:49:43 -04:00
Mitchell Irvin
3e0cfa5684
#778 Implemented BSTIterator. Included comprehensive unit and integration tests. Refactored file structure to be friendly to future contributors with iterators of more data structures. Added JUnitPlatform to enable running test suite across all iterator implementations. Added README to /binarysearchtree to document what it does and how it works.
2018-08-04 21:59:53 -04:00
Artur Mogozov
6694d742a3
Migrate to JUnit5
2017-12-31 16:29:48 +09:00
Ilkka Seppälä
faa29f8025
Update license headers
2016-11-27 14:34:20 +02:00
daniel-bryla
0438811489
#502 Replaced usages of System.out with logger.
2016-10-23 19:59:03 +02:00
Mohammed Ezzat
e4c34b1e22
squid:S1319 - Declarations should use Java collection interfaces such as List rather than specific implementation classes such as LinkedList
2016-02-23 12:32:23 +02:00
Mohammed Ezzat
50310aaeaf
squid:S1699 - Constructors should only call non-overridable methods
2016-02-19 11:02:49 +02:00
Joseph McCarthy
3d95696078
#358 Added license to all files using plugin
2016-01-27 22:20:42 +00:00
Ilkka Seppala
5f033be54f
Fix PMD violations #327
2015-12-27 21:21:57 +02:00
Ilkka Seppala
cec9a99410
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
2015-12-25 23:49:28 +02:00
Jeroen Meulemeester
25cacdbbc9
Added tests for iterator pattern
2015-12-14 15:14:48 +01:00
Ankur Kaushal
306b1f3d31
Reformat rest of the design patterns - Issue #224
2015-11-01 21:29:13 -05:00
Ilkka Seppala
e4ff39e080
Improve Iterator Javadoc
2015-10-03 21:37:29 +03:00
Ilkka Seppala
0d2e033df6
#107 Iterator example JavaDoc
2015-08-18 23:14:04 +03:00
Ilkka Seppala
8524c75ba6
Changed package naming across all examples.
2015-05-31 11:55:18 +03:00
Ilkka Seppala
6301e0bc11
Added unit tests for each of the patterns.
2014-12-06 20:34:41 +02:00
matthew
3da9ad5469
Formatted all files to the same standard
2014-10-08 13:42:12 +01:00
Matthew
bde5b343d0
Just formatting App classes to be like the other class files on the project
2014-10-07 16:23:37 +01:00
Ilkka Seppala
40e5444718
Added comments for iterator example.
2014-08-31 11:03:43 +03:00
Ilkka Seppala
91ed79e6bd
added iterator sample
2014-08-18 23:18:15 +03:00