96 Commits

Author SHA1 Message Date
pandachris
f1fa9c8253 BAEL-2565 move code to different project (#6099)
* BAEL-2565

* BAEL-2565
Test code consistency

* BAEL-2565
Move code to different project
2019-01-08 07:18:47 -08:00
kyleandari
2d8ea6d287 Bael 2431 (#6073)
* Adding code to java core and deleting it from java-8

* removing failed unittest

* removing space
2019-01-05 10:25:22 -08:00
pandachris
fe44881bb1 BAEL-2565 (#6077)
* BAEL-2565

* BAEL-2565
Test code consistency
2019-01-05 10:21:28 -08:00
amit2103
cf3d7b69e6 [BAEL-10836] - Moved Java8CollectionCleanupUnitTest, AddElementsUnitTest and articles 2018-12-29 20:12:21 +05:30
kyleandari
21bde94745 Java Interfaces Examples (#5992)
* Implementing Hexagonal Architecture in java

* Implementing multi-inheritance and Polymorphism using interfaces

* Removing hexagonal code

* Deleting hexagonal architecture code

* fix for unit test names

* Java Interfaces examples
2018-12-25 11:58:14 -08:00
kyleandari
94f4092314 BAEL-2431 Implementing multi-inheritance and Polymorphism using interfaces (#5924)
* Implementing Hexagonal Architecture in java

* Implementing multi-inheritance and Polymorphism using interfaces

* Removing hexagonal code

* Deleting hexagonal architecture code

* fix for unit test names
2018-12-15 14:35:09 -08:00
Sandip Singh
3c558d6427 BAEL-2303 Updated the code as per the review comments. 2018-11-06 14:21:19 +05:30
Sandip Singh
e1b47c72a0 BAEL-2303 Added sample code to demo how to replace multiple if statements in java. 2018-11-02 20:41:50 +05:30
amit2103
4f18b712f9 [] - Moved artices / codes from from the core-java related modules 2018-09-02 01:37:11 +05:30
Kacper
c4cb6eec73 Move optional to java-8-core (#5105) 2018-08-29 06:51:41 -07:00
Andrey Shcherbakov
89e8d66def Java Primitives versus Objects (#4946)
* Add code for the article 'Java Primitives versus Objects'

* Use JMH for benchmarking the primitive and wrapper classes

* Uncomment the benchmarks and remove unused class

* Add Long/long to the benchmark

* Remove assertions from the benchmarks

* Add the java docs
2018-08-26 21:45:37 +03:00
amit2103
c5e1d6f0ef [BAEL-8456] - Moved more articles into 'java-dates' module 2018-08-26 00:49:30 +05:30
amit2103
3bd1ed4ece [BAEL-8456] - Moved Java Date articles into a new module - 'java-dates' 2018-08-25 17:44:06 +05:30
amit2103
bab3a724c6 [BAEL-8434] - Moved java stream articles to java-streams module 2018-08-23 21:00:47 +05:30
amit2103
ab17b8e697 [BAEL-8232] - Moved java string related code and github links into new module java-strings 2018-08-18 23:24:10 +05:30
amit2103
d268ffa5c9 [BAEL-7670] Added logback.xml in missing modules in src/main/resources 2018-08-05 18:40:49 +05:30
fanatixan
cc4ab484cc moved examples for 'removing all occurrences of an element from a list' to core-java-collections (#4878) 2018-08-02 08:59:55 +02:00
fanatixan
6e646bf0de Bael 2023 (#4851)
* bael-2023: removing all occurrences of a value from a list

* adjusting examples to match the article
2018-07-31 12:56:29 +02:00
Tonnix
deb27c1e3b Added PR files for BAEL-2031 (#4844)
* Added source files for BAEL-2031

* Added test files for BAEL-2031
2018-07-29 17:07:16 +02:00
Predrag Maric
717bd1d48d
BAEL-2018 Moved to core-java-collections (#4796) 2018-07-23 09:02:10 +02:00
Felipe Santiago Corro
2fec9da2d5 Overriding System time for testing (#4779)
* Overriding System time for testing

* Remove Joda Date Time examples
2018-07-22 22:36:51 +02:00
myluckagain
8f52c3f6d3 Bael 2018 (#4774)
* BAEL-2018

* Update Animal.java

* rename

* tests added

* generic type shorten
2018-07-21 18:23:02 +02:00
myluckagain
770e8b0219 BAEL-2018 (#4753)
* BAEL-2018

* Update Animal.java

* rename
2018-07-19 21:07:00 +02:00
Felipe Santiago Corro
f68615d772 Copy list to another list examples (#4725) 2018-07-16 08:41:08 +02:00
Jonathan Cook
b44883b364 BAEL-1889 - Let's move the Java Number articles into a new module (#4619)
* BAEL-1849 - Convert from String to Date in Java

* BAEL-1863 - Calling Callbacks with Mockito

* BAEL-1889 - Let's move the Java Number articles into a new module

* BAEL-1889 - Let's move the Java Number articles into a new module
2018-07-14 15:00:37 +02:00
Abhinayak Swar
ed872e6118 BAEL-1897: Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day (#4615)
* abh.swar@gmail.com: Code check-in for article on Spring WebFlux
1. EmailWebClient is the client that subscribes to the data from WebFlux server
2. EmailGenerator generates one email per second randomly
3. EmailHandler and EmailRouter deal with handling of request of the subscriber
4. Email is the POJO for data transmitted by the server

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Added code and test to increment date by one day using java 8 and joda-time
- Added joda-time 2.10 dependency in pom.xml

* Revert "abh.swar@gmail.com: Code check-in for article on Spring WebFlux 1. EmailWebClient is the client that subscribes to the data from WebFlux server 2. EmailGenerator generates one email per second randomly 3. EmailHandler and EmailRouter deal with handling of request of the subscriber 4. Email is the POJO for data transmitted by the server"

This reverts commit 6254ad9

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Added code and test to increment date by one day using java.util.Calendar and ApacheCommons and unit tests for it
- Used properties for ${joda.version}
- Formatted the code using IntelliJ formatter
- Renamed DateIncrementerTest to DateIncrementerUnitTest
- Changed test method names to follow _given_when_then convention

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Removed unnecessary comment

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Corrected the order of parameters of assertEquals() method
2018-07-12 20:55:06 +02:00
Shubhra Srivastava
387d93e905 BAEL-1901 Add hours to Date in Java (#4599)
* BAEL-1901 Add hours to Date in Java

* BAEL-1901 : Editor Review Changes

* BAEL-1901 using assertThat for assertions
2018-07-08 10:27:42 -05:00
rozagerardo
7e0d553340 * Added code for BAEL-1899 get start and end of a day (#4567) 2018-06-25 22:30:31 -07:00
Chris Oberle
d683b370f6 refactor example 2018-05-30 07:48:42 -04:00
Chris Oberle
543c87fa70 initial import of source for BAEL-1786 2018-05-30 07:48:42 -04:00
Shubhra Srivastava
bdb937e68b BAEL 1748 - Optional - orElse() vs orElseGet() (#4240)
* Types of Bean Injection in Spring

* Changing config file name

* BAEL-1584 : Find an element in list

* Revert "Changing config file name"

This reverts commit d857db9f65b1cf89773348e3901385ce59d9e1f8.

* Revert "Types of Bean Injection in Spring"

This reverts commit e9efcb8e70f37e7488aa2371bb3ee62c676996f4.

* BAEL-1584 : Find an Element in Given List

* BAEL-1584 : Hashcode impl changed

* BAEL:1584 : ListIterator to Iterator change

* Method name refactoring

* BAEL 1748 - Optional OrElse vs OrElseGet

* BAEL-1748 Benchmark Runner
2018-05-15 11:20:55 -07:00
Ekaterina Galkina
4a81b13958 BAEL-1736 2018-05-12 18:10:42 +05:00
Shubhra Srivastava
b559157482 BAEL-1584 : Finding an element in list (#4067)
* BAEL-1584 : Find an Element in Given List
2018-04-30 14:53:17 -06:00
Ciro Alvino
61504c948b Bael 1585 (#3750)
* Different Types of Bean Injection in Spring

* BAEL-1585

* Revert "Different Types of Bean Injection in Spring"

This reverts commit ae47827879d0e9396ad5de5f979f495629a35838.

* Revert "BAEL-1585"

This reverts commit e792f17f82f863850d07884f4638c53beca7f52f.

* BAEL-1585

* rev1
2018-04-11 19:52:21 +02:00
ankishagarwal
3ad0cb693c Request for BAEL-1584 (#3740)
* Added for BAEL-1584

* updated for BAEL-1584

* Updated as per Suggestions from Josh, for BAEL-1584

* Removed wrapper class and updated few methods to return boolean instead of Integer
2018-03-13 19:48:11 +01:00
Ahmad Alsanie
0585764866 BAEL-1473 replaced int with AtomicInteger for safe usage in multi-threaded env (#3497)
* BAEL-1473 Intoduction to Spliterator in Java

* BAEL-1473 - Replace .out with logger.info

* removed log

* BAEL-1473 - added test-cases

* modify test-cases

* AtomicInteger instead of int

* SIZED removed
2018-01-24 09:29:14 -08:00
Ahmad Alsanie
25f449ad38 BAEL-1473 (#3477)
* BAEL-1473 Intoduction to Spliterator in Java

* BAEL-1473 - Replace .out with logger.info

* removed log

* BAEL-1473 - added test-cases

* modify test-cases
2018-01-21 09:44:22 -08:00
Doha2012
6f3710b9ae move stream API to core-java-8 (#3403)
* make sure modules using java8

* move url matching code

* upgrade boot parent

* minor cleanup

* fix blocking tests

* add core-java-io module

* move stream API to core-java-8
2018-01-13 14:58:51 +01:00
Ahmad Alsanie
07aad444ae BAEL-1473 Intoduction to Spliterator in Java (#3400) 2018-01-12 13:05:49 -08:00
Grzegorz Piwowarek
da4bd50cdb
Core Java 8 refactor (#3342) 2018-01-04 17:21:32 +02:00
thakursantosh
6f386f79e5 Code for BAEL-1437 - thakursantosh/st1972@gmail.com (#3294)
* New code for First Article 'Types of Bean Injection'

* Adding code for BAEL-1306

* Code changes for BAEL-1306

* Removed code of my evaluation article

* Simplified code to use number arrays BAEL-1306

* Simplified code for BAEL-1306

* Code commit for BAEL-1437

* Removed code that was added for BAEL-1437

* Code commit for BAEL-1437
2017-12-25 19:45:55 +01:00
KevinGilmore
314e2148b2
BAEL-1326 2nd attempt (#3281)
* BAEL-973: updated README

* BAEL-1069: Updated README

* BAEL-817: add README file

* BAEL-1084: README update

* BAEL-960: Update README

* BAEL-1155: updated README

* BAEL-1041: updated README

* BAEL-973: Updated README

* BAEL-1187: updated README

* BAEL-1183: Update README

* BAEL-1133: Updated README

* BAEL-1098: README update

* BAEL-719: add README.md

* BAEL-1272: README update

* BAEL-1272: README update

* BAEL-1196: Update README

* BAEL-1326: Default and static methods in interfaces
2017-12-23 07:04:16 -06:00
Eugen Paraschiv
533218682f import cleanup 2017-12-19 13:51:58 +02:00
Jose Bob Santos Jr
ae109dfb7c BAEL-1330 Primitive Type Streams in Java 8 (#3106)
* initial commit for first article evaluation

* fixed compilation error

* removed final keywords for compliance

* added unit tests and refactored as needed

* refactored application-context.xml to use self-closing tags

* renamed tests to use UnitTest suffix

* removed unnecessary annotation

* added code samples for primitive streams

* removed sample code and tests for evaluation article

* renamed unit test to proper unit test naming

* added a test to show boxed method

* added the assertion to the test fox boxed

* changed mapToInt test to use Arrays.asList instead of a POJO as per Grzegorz and Eugen
2017-12-15 02:50:51 +01:00
abialas
edec7ddbe5 BAEL-1344 (#3081)
* BAEL-1344 add java8 convert methods date, localdate, localdatetime

* BAEL-1344 add java9 example

* Move Date to LocalDate and LocalDateTime converters from core-java-8 to core-java-9
2017-11-24 13:29:08 -08:00
Loredana Crusoveanu
06b58e7978 formatting to trigger build 2017-11-21 23:49:37 +02:00
Loredana Crusoveanu
0b6a047cc0 change time zone method name 2017-11-21 22:30:29 +02:00
Loredana Crusoveanu
67e78dbf76
Merge pull request #3084 from steinhauer-software/BAEL-1317
BAEl-1317: Display All Time Zones With GMT and UTC
2017-11-21 21:49:16 +02:00
Holger Steinhauer
12567132b1 BAEL-1317: Moving Java7 example to core-java module 2017-11-21 07:31:09 +00:00
Holger Steinhauer
dbee97c1c1 BAEL-1317: Adding Java7 examples 2017-11-20 21:47:48 +00:00