[BAEL-17473] - Fixed conflicts

This commit is contained in:
amit2103 2019-10-03 01:18:04 +05:30
commit e56841bad7
362 changed files with 2237 additions and 1233 deletions

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [Guide to Akka Streams](http://www.baeldung.com/akka-streams) - [Guide to Akka Streams](https://www.baeldung.com/akka-streams)

View File

@ -1,6 +1,6 @@
## Relevant articles: ## Relevant articles:
- [Introduction to Jenetics Library](http://www.baeldung.com/jenetics) - [Introduction to Jenetics Library](https://www.baeldung.com/jenetics)
- [Ant Colony Optimization](http://www.baeldung.com/java-ant-colony-optimization) - [Ant Colony Optimization](https://www.baeldung.com/java-ant-colony-optimization)
- [Design a Genetic Algorithm in Java](https://www.baeldung.com/java-genetic-algorithm) - [Design a Genetic Algorithm in Java](https://www.baeldung.com/java-genetic-algorithm)
- [The Traveling Salesman Problem in Java](https://www.baeldung.com/java-simulated-annealing-for-traveling-salesman) - [The Traveling Salesman Problem in Java](https://www.baeldung.com/java-simulated-annealing-for-traveling-salesman)

View File

@ -1,6 +1,6 @@
## Relevant articles: ## Relevant articles:
- [Dijkstra Algorithm in Java](https://www.baeldung.com/java-dijkstra) - [Dijkstra Shortest Path Algorithm in Java](https://www.baeldung.com/java-dijkstra)
- [Introduction to Cobertura](https://www.baeldung.com/cobertura) - [Introduction to Cobertura](https://www.baeldung.com/cobertura)
- [Test a Linked List for Cyclicity](https://www.baeldung.com/java-linked-list-cyclicity) - [Test a Linked List for Cyclicity](https://www.baeldung.com/java-linked-list-cyclicity)
- [Introduction to JGraphT](https://www.baeldung.com/jgrapht) - [Introduction to JGraphT](https://www.baeldung.com/jgrapht)

View File

@ -2,8 +2,8 @@
- [Java Two Pointer Technique](https://www.baeldung.com/java-two-pointer-technique) - [Java Two Pointer Technique](https://www.baeldung.com/java-two-pointer-technique)
- [Implementing Simple State Machines with Java Enums](https://www.baeldung.com/java-enum-simple-state-machine) - [Implementing Simple State Machines with Java Enums](https://www.baeldung.com/java-enum-simple-state-machine)
- [Converting Between Roman and Arabic Numerals in Java](http://www.baeldung.com/java-convert-roman-arabic) - [Converting Between Roman and Arabic Numerals in Java](https://www.baeldung.com/java-convert-roman-arabic)
- [Practical Java Examples of the Big O Notation](http://www.baeldung.com/java-algorithm-complexity) - [Practical Java Examples of the Big O Notation](https://www.baeldung.com/java-algorithm-complexity)
- [Checking If a List Is Sorted in Java](https://www.baeldung.com/java-check-if-list-sorted) - [Checking If a List Is Sorted in Java](https://www.baeldung.com/java-check-if-list-sorted)
- [Checking if a Java Graph has a Cycle](https://www.baeldung.com/java-graph-has-a-cycle) - [Checking if a Java Graph has a Cycle](https://www.baeldung.com/java-graph-has-a-cycle)
- [A Guide to the Folding Technique in Java](https://www.baeldung.com/folding-hashing-technique) - [A Guide to the Folding Technique in Java](https://www.baeldung.com/folding-hashing-technique)

View File

@ -1,9 +1,10 @@
## Relevant articles: ## Relevant articles:
- [Bubble Sort in Java](http://www.baeldung.com/java-bubble-sort) - [Bubble Sort in Java](https://www.baeldung.com/java-bubble-sort)
- [Merge Sort in Java](https://www.baeldung.com/java-merge-sort) - [Merge Sort in Java](https://www.baeldung.com/java-merge-sort)
- [Quicksort Algorithm Implementation in Java](https://www.baeldung.com/java-quicksort) - [Quicksort Algorithm Implementation in Java](https://www.baeldung.com/java-quicksort)
- [Insertion Sort in Java](https://www.baeldung.com/java-insertion-sort) - [Insertion Sort in Java](https://www.baeldung.com/java-insertion-sort)
- [Heap Sort in Java](https://www.baeldung.com/java-heap-sort) - [Heap Sort in Java](https://www.baeldung.com/java-heap-sort)
- [Shell Sort in Java](https://www.baeldung.com/java-shell-sort) - [Shell Sort in Java](https://www.baeldung.com/java-shell-sort)
- [Counting Sort in Java](https://www.baeldung.com/java-counting-sort) - [Counting Sort in Java](https://www.baeldung.com/java-counting-sort)
- [Sorting Strings by Contained Numbers in Java](https://www.baeldung.com/java-sort-strings-contained-numbers)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
[Introduction to Animal Sniffer Maven Plugin](http://www.baeldung.com/maven-animal-sniffer) [Introduction to Animal Sniffer Maven Plugin](https://www.baeldung.com/maven-animal-sniffer)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Java Annotation Processing and Creating a Builder](http://www.baeldung.com/java-annotation-processing-builder) - [Java Annotation Processing and Creating a Builder](https://www.baeldung.com/java-annotation-processing-builder)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Java with ANTLR](http://www.baeldung.com/java-antlr) - [Java with ANTLR](https://www.baeldung.com/java-antlr)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Guide to Apache Avro](http://www.baeldung.com/java-apache-avro) - [Guide to Apache Avro](https://www.baeldung.com/java-apache-avro)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Intro to Apache BVal](http://www.baeldung.com/apache-bval) - [Intro to Apache BVal](https://www.baeldung.com/apache-bval)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to Apache Curator](http://www.baeldung.com/apache-curator) - [Introduction to Apache Curator](https://www.baeldung.com/apache-curator)

View File

@ -1,6 +1,6 @@
## Relevant Articles: ## Relevant Articles:
- [Introduction to Apache CXF Aegis Data Binding](http://www.baeldung.com/aegis-data-binding-in-apache-cxf) - [Introduction to Apache CXF Aegis Data Binding](https://www.baeldung.com/aegis-data-binding-in-apache-cxf)
- [Apache CXF Support for RESTful Web Services](http://www.baeldung.com/apache-cxf-rest-api) - [Apache CXF Support for RESTful Web Services](https://www.baeldung.com/apache-cxf-rest-api)
- [A Guide to Apache CXF with Spring](http://www.baeldung.com/apache-cxf-with-spring) - [A Guide to Apache CXF with Spring](https://www.baeldung.com/apache-cxf-with-spring)
- [Introduction to Apache CXF](http://www.baeldung.com/introduction-to-apache-cxf) - [Introduction to Apache CXF](https://www.baeldung.com/introduction-to-apache-cxf)
- [Server-Sent Events (SSE) In JAX-RS](https://www.baeldung.com/java-ee-jax-rs-sse) - [Server-Sent Events (SSE) In JAX-RS](https://www.baeldung.com/java-ee-jax-rs-sse)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
================================ ================================
- [Building a Microservice with Apache Meecrowave](http://www.baeldung.com/apache-meecrowave) - [Building a Microservice with Apache Meecrowave](https://www.baeldung.com/apache-meecrowave)

View File

@ -1,3 +1,4 @@
## Relevant articles: ## Relevant articles:
- [OData Protocol Guide](https://www.baeldung.com/odata) - [OData Protocol Guide](https://www.baeldung.com/odata)
- [Intro to OData with Olingo](https://www.baeldung.com/olingo)

View File

@ -1,3 +1,3 @@
### Relevant Articles ### Relevant Articles
- [Intro to Apache OpenNLP](http://www.baeldung.com/apache-open-nlp) - [Intro to Apache OpenNLP](https://www.baeldung.com/apache-open-nlp)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Microsoft Word Processing in Java with Apache POI](http://www.baeldung.com/java-microsoft-word-with-apache-poi) - [Microsoft Word Processing in Java with Apache POI](https://www.baeldung.com/java-microsoft-word-with-apache-poi)
- [Working with Microsoft Excel in Java](http://www.baeldung.com/java-microsoft-excel) - [Working with Microsoft Excel in Java](https://www.baeldung.com/java-microsoft-excel)
- [Creating a MS PowerPoint Presentation in Java](http://www.baeldung.com/apache-poi-slideshow) - [Creating a MS PowerPoint Presentation in Java](https://www.baeldung.com/apache-poi-slideshow)

View File

@ -1,2 +1,2 @@
### Relevant articles ### Relevant articles
- [Introduction to Apache Shiro](http://www.baeldung.com/apache-shiro) - [Introduction to Apache Shiro](https://www.baeldung.com/apache-shiro)

View File

@ -1,4 +1,4 @@
## Apache Solrj Tutorials Project ## Apache Solrj Tutorials Project
### Relevant Articles ### Relevant Articles
- [Guide to Solr in Java with Apache Solrj](http://www.baeldung.com/apache-solrj) - [Guide to Solr in Java with Apache Solrj](https://www.baeldung.com/apache-solrj)

View File

@ -1,4 +1,4 @@
### Relevant articles ### Relevant articles
- [Introduction to Apache Spark](http://www.baeldung.com/apache-spark) - [Introduction to Apache Spark](https://www.baeldung.com/apache-spark)
- [Building a Data Pipeline with Kafka, Spark Streaming and Cassandra](https://www.baeldung.com/kafka-spark-data-pipeline) - [Building a Data Pipeline with Kafka, Spark Streaming and Cassandra](https://www.baeldung.com/kafka-spark-data-pipeline)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Working with Apache Thrift](http://www.baeldung.com/apache-thrift) - [Working with Apache Thrift](https://www.baeldung.com/apache-thrift)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Content Analysis with Apache Tika](http://www.baeldung.com/apache-tika) - [Content Analysis with Apache Tika](https://www.baeldung.com/apache-tika)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Introduction to Apache Velocity](http://www.baeldung.com/apache-velocity) - [Introduction to Apache Velocity](https://www.baeldung.com/apache-velocity)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Getting Started with Java and Zookeeper](http://www.baeldung.com/java-zookeeper) - [Getting Started with Java and Zookeeper](https://www.baeldung.com/java-zookeeper)

View File

@ -1,4 +1,4 @@
### Relevant articles ### Relevant articles
- [Generating a Book with Asciidoctor](http://www.baeldung.com/asciidoctor-book) - [Generating a Book with Asciidoctor](https://www.baeldung.com/asciidoctor-book)
- [Introduction to Asciidoctor in Java](http://www.baeldung.com/asciidoctor) - [Introduction to Asciidoctor in Java](https://www.baeldung.com/asciidoctor)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [A Guide to Java Bytecode Manipulation with ASM](http://www.baeldung.com/java-asm) - [A Guide to Java Bytecode Manipulation with ASM](https://www.baeldung.com/java-asm)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Introduction to Atomix](http://www.baeldung.com/atomix) - [Introduction to Atomix](https://www.baeldung.com/atomix)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to AutoValue](http://www.baeldung.com/introduction-to-autovalue) - [Introduction to AutoValue](https://www.baeldung.com/introduction-to-autovalue)
- [Introduction to AutoFactory](http://www.baeldung.com/autofactory) - [Introduction to AutoFactory](https://www.baeldung.com/autofactory)
- [Google AutoService](https://www.baeldung.com/google-autoservice) - [Google AutoService](https://www.baeldung.com/google-autoservice)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Using AWS Lambda with API Gateway](http://www.baeldung.com/aws-lambda-api-gateway) - [Using AWS Lambda with API Gateway](https://www.baeldung.com/aws-lambda-api-gateway)
- [Introduction to AWS Serverless Application Model](http://www.baeldung.com/aws-serverless) - [Introduction to AWS Serverless Application Model](https://www.baeldung.com/aws-serverless)

View File

@ -1,11 +1,11 @@
### Relevant articles ### Relevant articles
- [AWS Lambda Using DynamoDB With Java](http://www.baeldung.com/aws-lambda-dynamodb-java) - [AWS Lambda Using DynamoDB With Java](https://www.baeldung.com/aws-lambda-dynamodb-java)
- [AWS S3 with Java](http://www.baeldung.com/aws-s3-java) - [AWS S3 with Java](https://www.baeldung.com/aws-s3-java)
- [AWS Lambda With Java](http://www.baeldung.com/java-aws-lambda) - [AWS Lambda With Java](https://www.baeldung.com/java-aws-lambda)
- [Managing EC2 Instances in Java](http://www.baeldung.com/ec2-java) - [Managing EC2 Instances in Java](https://www.baeldung.com/ec2-java)
- [Multipart Uploads in Amazon S3 with Java](http://www.baeldung.com/aws-s3-multipart-upload) - [Multipart Uploads in Amazon S3 with Java](https://www.baeldung.com/aws-s3-multipart-upload)
- [Integration Testing with a Local DynamoDB Instance](http://www.baeldung.com/dynamodb-local-integration-tests) - [Integration Testing with a Local DynamoDB Instance](https://www.baeldung.com/dynamodb-local-integration-tests)
- [Using the JetS3t Java Client With Amazon S3](http://www.baeldung.com/jets3t-amazon-s3) - [Using the JetS3t Java Client With Amazon S3](https://www.baeldung.com/jets3t-amazon-s3)
- [Managing Amazon SQS Queues in Java](http://www.baeldung.com/aws-queues-java) - [Managing Amazon SQS Queues in Java](https://www.baeldung.com/aws-queues-java)
- [Guide to AWS Aurora RDS with Java](https://www.baeldung.com/aws-aurora-rds-java) - [Guide to AWS Aurora RDS with Java](https://www.baeldung.com/aws-aurora-rds-java)

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [A Guide to the Axon Framework](http://www.baeldung.com/axon-cqrs-event-sourcing) - [A Guide to the Axon Framework](https://www.baeldung.com/axon-cqrs-event-sourcing)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Deploy a Spring Boot App to Azure](http://www.baeldung.com/spring-boot-azure) - [Deploy a Spring Boot App to Azure](https://www.baeldung.com/spring-boot-azure)

View File

@ -1,5 +1,5 @@
### Relevant Articles: ### Relevant Articles:
- [Blade A Complete Guidebook](http://www.baeldung.com/blade) - [Blade A Complete Guidebook](https://www.baeldung.com/blade)
Run Integration Tests with `mvn integration-test` Run Integration Tests with `mvn integration-test`

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to Bootique](http://www.baeldung.com/bootique) - [Introduction to Bootique](https://www.baeldung.com/bootique)

View File

@ -1,5 +1,5 @@
### Relevant Articles: ### Relevant Articles:
- [CDI Interceptor vs Spring AspectJ](http://www.baeldung.com/cdi-interceptor-vs-spring-aspectj) - [CDI Interceptor vs Spring AspectJ](https://www.baeldung.com/cdi-interceptor-vs-spring-aspectj)
- [An Introduction to CDI (Contexts and Dependency Injection) in Java](http://www.baeldung.com/java-ee-cdi) - [An Introduction to CDI (Contexts and Dependency Injection) in Java](https://www.baeldung.com/java-ee-cdi)
- [Introduction to the Event Notification Model in CDI 2.0](https://www.baeldung.com/cdi-event-notification) - [Introduction to the Event Notification Model in CDI 2.0](https://www.baeldung.com/cdi-event-notification)

View File

@ -1,6 +1,7 @@
package com.baeldung.cdi.cdi2observers.application; package com.baeldung.cdi2observers.application;
import com.baeldung.cdi2observers.events.ExampleEvent;
import com.baeldung.cdi.cdi2observers.events.ExampleEvent;
import javax.enterprise.inject.se.SeContainer; import javax.enterprise.inject.se.SeContainer;
import javax.enterprise.inject.se.SeContainerInitializer; import javax.enterprise.inject.se.SeContainerInitializer;

View File

@ -1,4 +1,4 @@
package com.baeldung.cdi.cdi2observers.events; package com.baeldung.cdi2observers.events;
public class ExampleEvent { public class ExampleEvent {

View File

@ -1,4 +1,4 @@
package com.baeldung.cdi.cdi2observers.events; package com.baeldung.cdi2observers.events;
import javax.enterprise.event.Event; import javax.enterprise.event.Event;
import javax.inject.Inject; import javax.inject.Inject;

View File

@ -1,6 +1,7 @@
package com.baeldung.cdi.cdi2observers.observers; package com.baeldung.cdi2observers.observers;
import com.baeldung.cdi2observers.events.ExampleEvent;
import com.baeldung.cdi.cdi2observers.events.ExampleEvent;
import javax.annotation.Priority; import javax.annotation.Priority;
import javax.enterprise.event.Observes; import javax.enterprise.event.Observes;

View File

@ -1,7 +1,7 @@
package com.baeldung.cdi.cdi2observers.observers; package com.baeldung.cdi2observers.observers;
import com.baeldung.cdi.cdi2observers.events.ExampleEvent; import com.baeldung.cdi2observers.events.ExampleEvent;
import com.baeldung.cdi.cdi2observers.services.TextService; import com.baeldung.cdi2observers.services.TextService;
import javax.annotation.Priority; import javax.annotation.Priority;
import javax.enterprise.event.Observes; import javax.enterprise.event.Observes;

View File

@ -1,4 +1,4 @@
package com.baeldung.cdi.cdi2observers.services; package com.baeldung.cdi2observers.services;
public class TextService { public class TextService {

View File

@ -1,7 +1,8 @@
<beans xmlns="http://java.sun.com/xml/ns/javaee" <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
http://java.sun.com/xml/ns/javaee/beans_1_2.xsd"> bean-discovery-mode="all">
<interceptors> <interceptors>
<class>com.baeldung.interceptor.AuditedInterceptor</class> <class>com.baeldung.interceptor.AuditedInterceptor</class>
</interceptors> </interceptors>

View File

@ -1,9 +1,10 @@
package com.baeldung.cdi.cdi2observers.tests; package com.baeldung.test.cdi2observers.tests;
import com.baeldung.cdi.cdi2observers.services.TextService; import com.baeldung.cdi2observers.services.TextService;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class TextServiceUnitTest { public class TextServiceUnitTest {
@Test @Test

View File

@ -6,7 +6,6 @@ import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test; import org.junit.Test;
public class TimeLoggerFactoryUnitTest { public class TimeLoggerFactoryUnitTest {
@Test @Test
public void givenTimeLoggerFactory_whenCalledgetTimeLogger_thenOneAssertion() { public void givenTimeLoggerFactory_whenCalledgetTimeLogger_thenOneAssertion() {
TimeLoggerFactory timeLoggerFactory = new TimeLoggerFactory(); TimeLoggerFactory timeLoggerFactory = new TimeLoggerFactory();

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [The Checker Framework Pluggable Type Systems for Java](http://www.baeldung.com/checker-framework) - [The Checker Framework Pluggable Type Systems for Java](https://www.baeldung.com/checker-framework)

View File

@ -2,10 +2,10 @@
## Relevant articles: ## Relevant articles:
- [String Matching in Groovy](http://www.baeldung.com/)
- [Template Engines in Groovy](https://www.baeldung.com/groovy-template-engines) - [Template Engines in Groovy](https://www.baeldung.com/groovy-template-engines)
- [Groovy def Keyword](https://www.baeldung.com/groovy-def-keyword) - [Groovy def Keyword](https://www.baeldung.com/groovy-def-keyword)
- [Pattern Matching in Strings in Groovy](https://www.baeldung.com/groovy-pattern-matching) - [Pattern Matching in Strings in Groovy](https://www.baeldung.com/groovy-pattern-matching)
- [Working with XML in Groovy](https://www.baeldung.com/groovy-xml) - [Working with XML in Groovy](https://www.baeldung.com/groovy-xml)
- [Integrating Groovy into Java Applications](https://www.baeldung.com/groovy-java-applications) - [Integrating Groovy into Java Applications](https://www.baeldung.com/groovy-java-applications)
- [Concatenate Strings with Groovy](https://www.baeldung.com/groovy-concatenate-strings) - [Concatenate Strings with Groovy](https://www.baeldung.com/groovy-concatenate-strings)
- [Metaprogramming in Groovy](https://www.baeldung.com/groovy-metaprogramming)

View File

@ -2,8 +2,8 @@
## Relevant articles: ## Relevant articles:
- [JDBC with Groovy](http://www.baeldung.com/jdbc-groovy) - [JDBC with Groovy](https://www.baeldung.com/jdbc-groovy)
- [Working with JSON in Groovy](http://www.baeldung.com/groovy-json) - [Working with JSON in Groovy](https://www.baeldung.com/groovy-json)
- [Reading a File in Groovy](https://www.baeldung.com/groovy-file-read) - [Reading a File in Groovy](https://www.baeldung.com/groovy-file-read)
- [Types of Strings in Groovy](https://www.baeldung.com/groovy-strings) - [Types of Strings in Groovy](https://www.baeldung.com/groovy-strings)
- [A Quick Guide to Iterating a Map in Groovy](https://www.baeldung.com/groovy-map-iterating) - [A Quick Guide to Iterating a Map in Groovy](https://www.baeldung.com/groovy-map-iterating)

View File

@ -5,6 +5,6 @@
### Relevant Articles: ### Relevant Articles:
- [Anonymous Classes in Java](http://www.baeldung.com/) - [Anonymous Classes in Java](http://www.baeldung.com/)
- [How to Delay Code Execution in Java](https://www.baeldung.com/java-delay-code-execution) - [How to Delay Code Execution in Java](https://www.baeldung.com/java-delay-code-execution)
- [Run JAR Application With Command Line Arguments](https://www.baeldung.com/java-run-jar-with-arguments) - [Run a Java Application from the Command Line](https://www.baeldung.com/java-run-jar-with-arguments)
- [Java 8 Stream skip() vs limit()](https://www.baeldung.com/java-stream-skip-vs-limit) - [Java 8 Stream skip() vs limit()](https://www.baeldung.com/java-stream-skip-vs-limit)
- [Guide to Java BiFunction Interface](https://www.baeldung.com/java-bifunction-interface) - [Guide to Java BiFunction Interface](https://www.baeldung.com/java-bifunction-interface)

View File

@ -10,6 +10,7 @@
- [Multi-Dimensional Arrays In Java](https://www.baeldung.com/java-jagged-arrays) - [Multi-Dimensional Arrays In Java](https://www.baeldung.com/java-jagged-arrays)
- [Find Sum and Average in a Java Array](https://www.baeldung.com/java-array-sum-average) - [Find Sum and Average in a Java Array](https://www.baeldung.com/java-array-sum-average)
- [Arrays in Java: A Reference Guide](https://www.baeldung.com/java-arrays-guide) - [Arrays in Java: A Reference Guide](https://www.baeldung.com/java-arrays-guide)
- [How to Invert an Array in Java](https://www.baeldung.com/java-invert-array) - [Read and Write User Input in Java](https://www.baeldung.com/java-console-input-output)
- [How to Reverse an Array in Java](http://www.baeldung.com/java-invert-array)
- [Sorting Arrays in Java](https://www.baeldung.com/java-sorting-arrays) - [Sorting Arrays in Java](https://www.baeldung.com/java-sorting-arrays)
- [Checking If an Array Is Sorted in Java](https://www.baeldung.com/java-check-sorted-array) - [Checking If an Array Is Sorted in Java](https://www.baeldung.com/java-check-sorted-array)

View File

@ -13,4 +13,5 @@
- [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object) - [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object)
- [Inheritance and Composition (Is-a vs Has-a relationship) in Java](https://www.baeldung.com/java-inheritance-composition) - [Inheritance and Composition (Is-a vs Has-a relationship) in Java](https://www.baeldung.com/java-inheritance-composition)
- [A Guide to Constructors in Java](https://www.baeldung.com/java-constructors) - [A Guide to Constructors in Java](https://www.baeldung.com/java-constructors)
- [Composition, Aggregation, and Association in Java](https://www.baeldung.com/java-composition-aggregation-association)
- [Static and Default Methods in Interfaces in Java](https://www.baeldung.com/java-static-default-methods) - [Static and Default Methods in Interfaces in Java](https://www.baeldung.com/java-static-default-methods)

View File

@ -0,0 +1,6 @@
## Relevant Articles:
- [Guide to the Diamond Operator in Java](https://www.baeldung.com/java-diamond-operator)
- [Ternary Operator In Java](https://www.baeldung.com/java-ternary-operator)
- [The Modulo Operator in Java](https://www.baeldung.com/modulo-java)
- [Java instanceof Operator](https://www.baeldung.com/java-instanceof)
- [A Guide to Increment and Decrement Unary Operators in Java](https://www.baeldung.com/java-unary-operators)

View File

@ -38,3 +38,4 @@
- [Attaching Values to Java Enum](https://www.baeldung.com/java-enum-values) - [Attaching Values to Java Enum](https://www.baeldung.com/java-enum-values)
- [Variable Scope in Java](https://www.baeldung.com/java-variable-scope) - [Variable Scope in Java](https://www.baeldung.com/java-variable-scope)
- [Java Classes and Objects](https://www.baeldung.com/java-classes-objects) - [Java Classes and Objects](https://www.baeldung.com/java-classes-objects)
- [A Guide to Java Enums](https://www.baeldung.com/a-guide-to-java-enums)

View File

@ -11,3 +11,4 @@
- [SHA-256 and SHA3-256 Hashing in Java](https://www.baeldung.com/sha-256-hashing-java) - [SHA-256 and SHA3-256 Hashing in Java](https://www.baeldung.com/sha-256-hashing-java)
- [Enabling TLS v1.2 in Java 7](https://www.baeldung.com/java-7-tls-v12) - [Enabling TLS v1.2 in Java 7](https://www.baeldung.com/java-7-tls-v12)
- [The Java SecureRandom Class](https://www.baeldung.com/java-secure-random) - [The Java SecureRandom Class](https://www.baeldung.com/java-secure-random)
- [An Introduction to Java SASL](https://www.baeldung.com/java-sasl)

View File

@ -0,0 +1,34 @@
package com.baeldung.lists
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class ListsUnitTest {
var batmans: List<String> = listOf("Christian Bale", "Michael Keaton", "Ben Affleck", "George Clooney")
@Test
fun whenFindASpecificItem_thenItemIsReturned() {
//Returns the first element matching the given predicate, or null if no such element was found.
val theFirstBatman = batmans.find { actor -> "Michael Keaton".equals(actor) }
assertEquals(theFirstBatman, "Michael Keaton")
}
@Test
fun whenFilterWithPredicate_thenMatchingItemsAreReturned() {
//Returns a list containing only elements matching the given predicate.
val theCoolestBatmans = batmans.filter { actor -> actor.contains("a") }
assertTrue(theCoolestBatmans.contains("Christian Bale") && theCoolestBatmans.contains("Michael Keaton"))
}
@Test
fun whenFilterNotWithPredicate_thenMatchingItemsAreReturned() {
//Returns a list containing only elements not matching the given predicate.
val theMehBatmans = batmans.filterNot { actor -> actor.contains("a") }
assertFalse(theMehBatmans.contains("Christian Bale") && theMehBatmans.contains("Michael Keaton"))
assertTrue(theMehBatmans.contains("Ben Affleck") && theMehBatmans.contains("George Clooney"))
}
}

View File

@ -1,36 +1,36 @@
## Relevant articles: ## Relevant articles:
- [Introduction to the Kotlin Language](http://www.baeldung.com/kotlin) - [Introduction to the Kotlin Language](https://www.baeldung.com/kotlin)
- [Guide to the “when{}” Block in Kotlin](http://www.baeldung.com/kotlin-when) - [Guide to the “when{}” Block in Kotlin](https://www.baeldung.com/kotlin-when)
- [Comprehensive Guide to Null Safety in Kotlin](http://www.baeldung.com/kotlin-null-safety) - [Comprehensive Guide to Null Safety in Kotlin](https://www.baeldung.com/kotlin-null-safety)
- [Kotlin Java Interoperability](http://www.baeldung.com/kotlin-java-interoperability) - [Kotlin Java Interoperability](https://www.baeldung.com/kotlin-java-interoperability)
- [Difference Between “==” and “===” operators in Kotlin](http://www.baeldung.com/kotlin-equality-operators) - [Difference Between “==” and “===” operators in Kotlin](https://www.baeldung.com/kotlin-equality-operators)
- [Generics in Kotlin](http://www.baeldung.com/kotlin-generics) - [Generics in Kotlin](https://www.baeldung.com/kotlin-generics)
- [Introduction to Kotlin Coroutines](http://www.baeldung.com/kotlin-coroutines) - [Introduction to Kotlin Coroutines](https://www.baeldung.com/kotlin-coroutines)
- [Destructuring Declarations in Kotlin](http://www.baeldung.com/kotlin-destructuring-declarations) - [Destructuring Declarations in Kotlin](https://www.baeldung.com/kotlin-destructuring-declarations)
- [Lazy Initialization in Kotlin](http://www.baeldung.com/kotlin-lazy-initialization) - [Lazy Initialization in Kotlin](https://www.baeldung.com/kotlin-lazy-initialization)
- [Overview of Kotlin Collections API](http://www.baeldung.com/kotlin-collections-api) - [Overview of Kotlin Collections API](https://www.baeldung.com/kotlin-collections-api)
- [Converting a List to Map in Kotlin](http://www.baeldung.com/kotlin-list-to-map) - [Converting a List to Map in Kotlin](https://www.baeldung.com/kotlin-list-to-map)
- [Data Classes in Kotlin](http://www.baeldung.com/kotlin-data-classes) - [Data Classes in Kotlin](https://www.baeldung.com/kotlin-data-classes)
- [Delegated Properties in Kotlin](http://www.baeldung.com/kotlin-delegated-properties) - [Delegated Properties in Kotlin](https://www.baeldung.com/kotlin-delegated-properties)
- [Sealed Classes in Kotlin](http://www.baeldung.com/kotlin-sealed-classes) - [Sealed Classes in Kotlin](https://www.baeldung.com/kotlin-sealed-classes)
- [JUnit 5 for Kotlin Developers](http://www.baeldung.com/junit-5-kotlin) - [JUnit 5 for Kotlin Developers](https://www.baeldung.com/junit-5-kotlin)
- [Extension Methods in Kotlin](http://www.baeldung.com/kotlin-extension-methods) - [Extension Methods in Kotlin](https://www.baeldung.com/kotlin-extension-methods)
- [Infix Functions in Kotlin](http://www.baeldung.com/kotlin-infix-functions) - [Infix Functions in Kotlin](https://www.baeldung.com/kotlin-infix-functions)
- [Try-with-resources in Kotlin](http://www.baeldung.com/kotlin-try-with-resources) - [Try-with-resources in Kotlin](https://www.baeldung.com/kotlin-try-with-resources)
- [Regular Expressions in Kotlin](http://www.baeldung.com/kotlin-regular-expressions) - [Regular Expressions in Kotlin](https://www.baeldung.com/kotlin-regular-expressions)
- [Objects in Kotlin](http://www.baeldung.com/kotlin-objects) - [Objects in Kotlin](https://www.baeldung.com/kotlin-objects)
- [Reading from a File in Kotlin](http://www.baeldung.com/kotlin-read-file) - [Reading from a File in Kotlin](https://www.baeldung.com/kotlin-read-file)
- [Guide to Kotlin @JvmField](http://www.baeldung.com/kotlin-jvm-field-annotation) - [Guide to Kotlin @JvmField](https://www.baeldung.com/kotlin-jvm-field-annotation)
- [Filtering Kotlin Collections](http://www.baeldung.com/kotlin-filter-collection) - [Filtering Kotlin Collections](https://www.baeldung.com/kotlin-filter-collection)
- [Writing to a File in Kotlin](http://www.baeldung.com/kotlin-write-file) - [Writing to a File in Kotlin](https://www.baeldung.com/kotlin-write-file)
- [Lambda Expressions in Kotlin](http://www.baeldung.com/kotlin-lambda-expressions) - [Lambda Expressions in Kotlin](https://www.baeldung.com/kotlin-lambda-expressions)
- [Kotlin String Templates](http://www.baeldung.com/kotlin-string-template) - [Kotlin String Templates](https://www.baeldung.com/kotlin-string-template)
- [Working with Enums in Kotlin](http://www.baeldung.com/kotlin-enum) - [Working with Enums in Kotlin](https://www.baeldung.com/kotlin-enum)
- [Create a Java and Kotlin Project with Maven](http://www.baeldung.com/kotlin-maven-java-project) - [Create a Java and Kotlin Project with Maven](https://www.baeldung.com/kotlin-maven-java-project)
- [Reflection with Kotlin](http://www.baeldung.com/kotlin-reflection) - [Reflection with Kotlin](https://www.baeldung.com/kotlin-reflection)
- [Get a Random Number in Kotlin](http://www.baeldung.com/kotlin-random-number) - [Get a Random Number in Kotlin](https://www.baeldung.com/kotlin-random-number)
- [Idiomatic Logging in Kotlin](http://www.baeldung.com/kotlin-logging) - [Idiomatic Logging in Kotlin](https://www.baeldung.com/kotlin-logging)
- [Kotlin Constructors](https://www.baeldung.com/kotlin-constructors) - [Kotlin Constructors](https://www.baeldung.com/kotlin-constructors)
- [Creational Design Patterns in Kotlin: Builder](https://www.baeldung.com/kotlin-builder-pattern) - [Creational Design Patterns in Kotlin: Builder](https://www.baeldung.com/kotlin-builder-pattern)
- [Kotlin Nested and Inner Classes](https://www.baeldung.com/kotlin-inner-classes) - [Kotlin Nested and Inner Classes](https://www.baeldung.com/kotlin-inner-classes)

View File

@ -1,11 +1,11 @@
## Couchbase SDK Tutorial Project ## Couchbase SDK Tutorial Project
### Relevant Articles: ### Relevant Articles:
- [Introduction to Couchbase SDK for Java](http://www.baeldung.com/java-couchbase-sdk) - [Introduction to Couchbase SDK for Java](https://www.baeldung.com/java-couchbase-sdk)
- [Using Couchbase in a Spring Application](http://www.baeldung.com/couchbase-sdk-spring) - [Using Couchbase in a Spring Application](https://www.baeldung.com/couchbase-sdk-spring)
- [Asynchronous Batch Operations in Couchbase](http://www.baeldung.com/async-batch-operations-in-couchbase) - [Asynchronous Batch Operations in Couchbase](https://www.baeldung.com/async-batch-operations-in-couchbase)
- [Querying Couchbase with MapReduce Views](http://www.baeldung.com/couchbase-query-mapreduce-view) - [Querying Couchbase with MapReduce Views](https://www.baeldung.com/couchbase-query-mapreduce-view)
- [Querying Couchbase with N1QL](http://www.baeldung.com/n1ql-couchbase) - [Querying Couchbase with N1QL](https://www.baeldung.com/n1ql-couchbase)
### Overview ### Overview
This Maven project contains the Java code for the Couchbase entities and Spring services This Maven project contains the Java code for the Couchbase entities and Spring services

View File

@ -1,3 +1,3 @@
### Relevant articles: ### Relevant articles:
- [Introduction to Dagger 2](http://www.baeldung.com/dagger-2) - [Introduction to Dagger 2](https://www.baeldung.com/dagger-2)

View File

@ -2,4 +2,4 @@
This is a sample project for the [deeplearning4j](https://deeplearning4j.org) library. This is a sample project for the [deeplearning4j](https://deeplearning4j.org) library.
### Relevant Articles: ### Relevant Articles:
- [A Guide to Deeplearning4j](http://www.baeldung.com/deeplearning4j) - [A Guide to Deeplearning4j](https://www.baeldung.com/deeplearning4j)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Concurrency with LMAX Disruptor An Introduction](http://www.baeldung.com/lmax-disruptor-concurrency) - [Concurrency with LMAX Disruptor An Introduction](https://www.baeldung.com/lmax-disruptor-concurrency)

3
docker/README.md Normal file
View File

@ -0,0 +1,3 @@
## Relevant Articles:
- [Introduction to Docker Compose](https://www.baeldung.com/docker-compose)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [A Guide to Mapping With Dozer](http://www.baeldung.com/dozer) - [A Guide to Mapping With Dozer](https://www.baeldung.com/dozer)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to Drools](http://www.baeldung.com/drools) - [Introduction to Drools](https://www.baeldung.com/drools)
- [Drools Using Rules from Excel Files](http://www.baeldung.com/drools-excel) - [Drools Using Rules from Excel Files](https://www.baeldung.com/drools-excel)
- [An Example of Backward Chaining in Drools](http://www.baeldung.com/drools-backward-chaining) - [An Example of Backward Chaining in Drools](https://www.baeldung.com/drools-backward-chaining)

View File

@ -1,4 +1,4 @@
## Relevant articles: ## Relevant articles:
- [Introduction to Dubbo](http://www.baeldung.com/dubbo) - [Introduction to Dubbo](https://www.baeldung.com/dubbo)

View File

@ -1,6 +1,6 @@
## Ethereum ## Ethereum
### Relevant Articles: ### Relevant Articles:
- [Introduction to EthereumJ](http://www.baeldung.com/ethereumj) - [Introduction to EthereumJ](https://www.baeldung.com/ethereumj)
- [Creating and Deploying Smart Contracts with Solidity](http://www.baeldung.com/smart-contracts-ethereum-solidity) - [Creating and Deploying Smart Contracts with Solidity](https://www.baeldung.com/smart-contracts-ethereum-solidity)
- [Lightweight Ethereum Clients Using Web3j](http://www.baeldung.com/web3j) - [Lightweight Ethereum Clients Using Web3j](https://www.baeldung.com/web3j)

View File

@ -6,5 +6,5 @@ This is the implementation of a [spring-hypermedia-api][1] client using Feign.
### Relevant Articles: ### Relevant Articles:
- [Intro to Feign](http://www.baeldung.com/intro-to-feign) - [Intro to Feign](https://www.baeldung.com/intro-to-feign)
- [Introduction to SLF4J](http://www.baeldung.com/slf4j-with-log4j2-logback) - [Introduction to SLF4J](https://www.baeldung.com/slf4j-with-log4j2-logback)

View File

@ -1,3 +1,3 @@
### Relevant Articles ### Relevant Articles
[Introduction to GeoTools](http://www.baeldung.com/geo-tools) [Introduction to GeoTools](https://www.baeldung.com/geo-tools)

View File

@ -1,7 +1,7 @@
## Google Cloud Tutorial Project ## Google Cloud Tutorial Project
### Relevant Article: ### Relevant Article:
- [Intro to Google Cloud Storage With Java](http://www.baeldung.com/java-google-cloud-storage) - [Intro to Google Cloud Storage With Java](https://www.baeldung.com/java-google-cloud-storage)
### Overview ### Overview
This Maven project contains the Java code for the article linked above. This Maven project contains the Java code for the article linked above.

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to GWT](http://www.baeldung.com/gwt) - [Introduction to GWT](https://www.baeldung.com/gwt)

View File

@ -1,6 +1,6 @@
## Relevant articles: ## Relevant articles:
- [Introduction to Gradle](http://www.baeldung.com/gradle) - [Introduction to Gradle](https://www.baeldung.com/gradle)
- [Writing Custom Gradle Plugins](http://www.baeldung.com/gradle-create-plugin) - [Writing Custom Gradle Plugins](https://www.baeldung.com/gradle-create-plugin)
- [Creating a Fat Jar in Gradle](http://www.baeldung.com/gradle-fat-jar) - [Creating a Fat Jar in Gradle](https://www.baeldung.com/gradle-fat-jar)
- [A Custom Task in Gradle](http://www.baeldung.com/gradle-custom-task) - [A Custom Task in Gradle](https://www.baeldung.com/gradle-custom-task)
- [Using JUnit 5 with Gradle](https://www.baeldung.com/junit-5-gradle) - [Using JUnit 5 with Gradle](https://www.baeldung.com/junit-5-gradle)

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [Build an MVC Web Application with Grails](http://www.baeldung.com/grails-mvc-application) - [Build an MVC Web Application with Grails](https://www.baeldung.com/grails-mvc-application)

View File

@ -1,3 +1,3 @@
## Relevant articles: ## Relevant articles:
- [Introduction to GraphQL](http://www.baeldung.com/graphql) - [Introduction to GraphQL](https://www.baeldung.com/graphql)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to gRPC](http://www.baeldung.com/grpc-introduction) - [Introduction to gRPC](https://www.baeldung.com/grpc-introduction)

View File

@ -4,9 +4,9 @@
### Relevant Articles: ### Relevant Articles:
- [Gson Deserialization Cookbook](http://www.baeldung.com/gson-deserialization-guide) - [Gson Deserialization Cookbook](https://www.baeldung.com/gson-deserialization-guide)
- [Jackson vs Gson](http://www.baeldung.com/jackson-vs-gson) - [Jackson vs Gson](https://www.baeldung.com/jackson-vs-gson)
- [Exclude Fields from Serialization in Gson](http://www.baeldung.com/gson-exclude-fields-serialization) - [Exclude Fields from Serialization in Gson](https://www.baeldung.com/gson-exclude-fields-serialization)
- [Save Data to a JSON File with Gson](https://www.baeldung.com/gson-save-file) - [Save Data to a JSON File with Gson](https://www.baeldung.com/gson-save-file)
- [Convert JSON to a Map Using Gson](https://www.baeldung.com/gson-json-to-map) - [Convert JSON to a Map Using Gson](https://www.baeldung.com/gson-json-to-map)
- [Working with Primitive Values in Gson](https://www.baeldung.com/java-gson-primitives) - [Working with Primitive Values in Gson](https://www.baeldung.com/java-gson-primitives)

View File

@ -2,7 +2,7 @@
## Relevant Articles: ## Relevant Articles:
- [Guava Sets](http://www.baeldung.com/guava-sets) - [Guava Sets](https://www.baeldung.com/guava-sets)
- [Guide to Guava RangeSet](http://www.baeldung.com/guava-rangeset) - [Guide to Guava RangeSet](https://www.baeldung.com/guava-rangeset)
- [Guava Set + Function = Map](http://www.baeldung.com/guava-set-function-map-tutorial) - [Guava Set + Function = Map](https://www.baeldung.com/guava-set-function-map-tutorial)
- [Guide to Guava Multiset](https://www.baeldung.com/guava-multiset) - [Guide to Guava Multiset](https://www.baeldung.com/guava-multiset)

View File

@ -4,17 +4,17 @@
### Relevant Articles: ### Relevant Articles:
- [Guava Collections Cookbook](http://www.baeldung.com/guava-collections) - [Guava Collections Cookbook](https://www.baeldung.com/guava-collections)
- [Guava Ordering Cookbook](http://www.baeldung.com/guava-order) - [Guava Ordering Cookbook](https://www.baeldung.com/guava-order)
- [Hamcrest Collections Cookbook](http://www.baeldung.com/hamcrest-collections-arrays) - [Hamcrest Collections Cookbook](https://www.baeldung.com/hamcrest-collections-arrays)
- [Partition a List in Java](http://www.baeldung.com/java-list-split) - [Partition a List in Java](https://www.baeldung.com/java-list-split)
- [Filtering and Transforming Collections in Guava](http://www.baeldung.com/guava-filter-and-transform-a-collection) - [Filtering and Transforming Collections in Guava](https://www.baeldung.com/guava-filter-and-transform-a-collection)
- [Guava Join and Split Collections](http://www.baeldung.com/guava-joiner-and-splitter-tutorial) - [Guava Join and Split Collections](https://www.baeldung.com/guava-joiner-and-splitter-tutorial)
- [Guava Lists](http://www.baeldung.com/guava-lists) - [Guava Lists](https://www.baeldung.com/guava-lists)
- [Guava Maps](http://www.baeldung.com/guava-maps) - [Guava Maps](https://www.baeldung.com/guava-maps)
- [Guide to Guava Multimap](http://www.baeldung.com/guava-multimap) - [Guide to Guava Multimap](https://www.baeldung.com/guava-multimap)
- [Guide to Guava RangeMap](http://www.baeldung.com/guava-rangemap) - [Guide to Guava RangeMap](https://www.baeldung.com/guava-rangemap)
- [Guide to Guava MinMaxPriorityQueue and EvictingQueue](http://www.baeldung.com/guava-minmax-priority-queue-and-evicting-queue) - [Guide to Guava MinMaxPriorityQueue and EvictingQueue](https://www.baeldung.com/guava-minmax-priority-queue-and-evicting-queue)
- [Initialize a HashMap in Java](https://www.baeldung.com/java-initialize-hashmap) - [Initialize a HashMap in Java](https://www.baeldung.com/java-initialize-hashmap)
- [Guide to Guava Table](http://www.baeldung.com/guava-table) - [Guide to Guava Table](https://www.baeldung.com/guava-table)
- [Guide to Guava ClassToInstanceMap](http://www.baeldung.com/guava-class-to-instance-map) - [Guide to Guava ClassToInstanceMap](https://www.baeldung.com/guava-class-to-instance-map)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Using Guava CountingOutputStream](http://www.baeldung.com/guava-counting-outputstream) - [Using Guava CountingOutputStream](https://www.baeldung.com/guava-counting-outputstream)
- [Guava Write to File, Read from File](http://www.baeldung.com/guava-write-to-file-read-from-file) - [Guava Write to File, Read from File](https://www.baeldung.com/guava-write-to-file-read-from-file)

View File

@ -2,14 +2,14 @@
## Guava Examples ## Guava Examples
### Relevant Articles: ### Relevant Articles:
- [Guava Functional Cookbook](http://www.baeldung.com/guava-functions-predicates) - [Guava Functional Cookbook](https://www.baeldung.com/guava-functions-predicates)
- [Guide to Guavas Ordering](http://www.baeldung.com/guava-ordering) - [Guide to Guavas Ordering](https://www.baeldung.com/guava-ordering)
- [Guide to Guavas PreConditions](http://www.baeldung.com/guava-preconditions) - [Guide to Guavas PreConditions](https://www.baeldung.com/guava-preconditions)
- [Introduction to Guava CacheLoader](http://www.baeldung.com/guava-cacheloader) - [Introduction to Guava CacheLoader](https://www.baeldung.com/guava-cacheloader)
- [Introduction to Guava Memoizer](http://www.baeldung.com/guava-memoizer) - [Introduction to Guava Memoizer](https://www.baeldung.com/guava-memoizer)
- [Guide to Guavas EventBus](http://www.baeldung.com/guava-eventbus) - [Guide to Guavas EventBus](https://www.baeldung.com/guava-eventbus)
- [Guide to Guavas Reflection Utilities](http://www.baeldung.com/guava-reflection) - [Guide to Guavas Reflection Utilities](https://www.baeldung.com/guava-reflection)
- [Guide to Mathematical Utilities in Guava](http://www.baeldung.com/guava-math) - [Guide to Mathematical Utilities in Guava](https://www.baeldung.com/guava-math)
- [Bloom Filter in Java using Guava](http://www.baeldung.com/guava-bloom-filter) - [Bloom Filter in Java using Guava](https://www.baeldung.com/guava-bloom-filter)
- [Quick Guide to the Guava RateLimiter](http://www.baeldung.com/guava-rate-limiter) - [Quick Guide to the Guava RateLimiter](https://www.baeldung.com/guava-rate-limiter)

View File

@ -1,5 +1,5 @@
## Google Guice Tutorials Project ## Google Guice Tutorials Project
### Relevant Articles ### Relevant Articles
- [Guide to Google Guice](http://www.baeldung.com/guice) - [Guide to Google Guice](https://www.baeldung.com/guice)
- [Guice vs Spring Dependency Injection](https://www.baeldung.com/guice-spring-dependency-injection) - [Guice vs Spring Dependency Injection](https://www.baeldung.com/guice-spring-dependency-injection)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Guide to Hazelcast with Java](http://www.baeldung.com/java-hazelcast) - [Guide to Hazelcast with Java](https://www.baeldung.com/java-hazelcast)
- [Introduction to Hazelcast Jet](https://www.baeldung.com/hazelcast-jet) - [Introduction to Hazelcast Jet](https://www.baeldung.com/hazelcast-jet)

View File

@ -1,12 +1,12 @@
========= =========
## This module contains articles that are part of the HTTPClient Ebook ## This module contains articles that are part of the HTTPClient Ebook
- [HttpClient 4 Get the Status Code](http://www.baeldung.com/httpclient-status-code) - [HttpClient 4 Get the Status Code](https://www.baeldung.com/httpclient-status-code)
- [HttpClient with SSL](http://www.baeldung.com/httpclient-ssl) - [HttpClient with SSL](https://www.baeldung.com/httpclient-ssl)
- [HttpClient Timeout](http://www.baeldung.com/httpclient-timeout) - [HttpClient Timeout](https://www.baeldung.com/httpclient-timeout)
- [HttpClient 4 Send Custom Cookie](http://www.baeldung.com/httpclient-4-cookies) - [HttpClient 4 Send Custom Cookie](https://www.baeldung.com/httpclient-4-cookies)
- [Custom HTTP Header with the HttpClient](http://www.baeldung.com/httpclient-custom-http-header) - [Custom HTTP Header with the HttpClient](https://www.baeldung.com/httpclient-custom-http-header)
- [HttpClient Basic Authentication](http://www.baeldung.com/httpclient-4-basic-authentication) - [HttpClient Basic Authentication](https://www.baeldung.com/httpclient-4-basic-authentication)
- [Posting with HttpClient](https://www.baeldung.com/httpclient-post-http-request) - [Posting with HttpClient](https://www.baeldung.com/httpclient-post-http-request)

View File

@ -7,13 +7,13 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
### Relevant Articles: ### Relevant Articles:
- [HttpClient 4 Cancel Request](http://www.baeldung.com/httpclient-cancel-request) - [HttpClient 4 Cancel Request](https://www.baeldung.com/httpclient-cancel-request)
- [HttpClient 4 Cookbook](http://www.baeldung.com/httpclient4) - [HttpClient 4 Cookbook](https://www.baeldung.com/httpclient4)
- [Unshorten URLs with HttpClient](http://www.baeldung.com/unshorten-url-httpclient) - [Unshorten URLs with HttpClient](https://www.baeldung.com/unshorten-url-httpclient)
- [HttpClient 4 Follow Redirects for POST](http://www.baeldung.com/httpclient-redirect-on-http-post) - [HttpClient 4 Follow Redirects for POST](https://www.baeldung.com/httpclient-redirect-on-http-post)
- [Multipart Upload with HttpClient 4](http://www.baeldung.com/httpclient-multipart-upload) - [Multipart Upload with HttpClient 4](https://www.baeldung.com/httpclient-multipart-upload)
- [HttpAsyncClient Tutorial](http://www.baeldung.com/httpasyncclient-tutorial) - [HttpAsyncClient Tutorial](https://www.baeldung.com/httpasyncclient-tutorial)
- [HttpClient 4 Tutorial](http://www.baeldung.com/httpclient-guide) - [HttpClient 4 Tutorial](https://www.baeldung.com/httpclient-guide)
- [Advanced HttpClient Configuration](http://www.baeldung.com/httpclient-advanced-config) - [Advanced HttpClient Configuration](https://www.baeldung.com/httpclient-advanced-config)
- [HttpClient 4 Do Not Follow Redirects](http://www.baeldung.com/httpclient-stop-follow-redirect) - [HttpClient 4 Do Not Follow Redirects](https://www.baeldung.com/httpclient-stop-follow-redirect)
- [Custom User-Agent in HttpClient 4](http://www.baeldung.com/httpclient-user-agent-header) - [Custom User-Agent in HttpClient 4](https://www.baeldung.com/httpclient-user-agent-header)

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Hystrix Integration with Existing Spring Application](http://www.baeldung.com/hystrix-integration-with-spring-aop) - [Hystrix Integration with Existing Spring Application](https://www.baeldung.com/hystrix-integration-with-spring-aop)
- [Introduction to Hystrix](http://www.baeldung.com/introduction-to-hystrix) - [Introduction to Hystrix](https://www.baeldung.com/introduction-to-hystrix)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Working with Images in Java](http://www.baeldung.com/java-images) - [Working with Images in Java](https://www.baeldung.com/java-images)

View File

@ -1,2 +1,2 @@
### Relevant Articles: ### Relevant Articles:
- [Introduction to Immutables](http://www.baeldung.com/immutables) - [Introduction to Immutables](https://www.baeldung.com/immutables)

View File

@ -5,9 +5,9 @@
The "REST With Spring" Classes: http://bit.ly/restwithspring The "REST With Spring" Classes: http://bit.ly/restwithspring
### Relevant Articles: ### Relevant Articles:
- [Jackson Ignore Properties on Marshalling](http://www.baeldung.com/jackson-ignore-properties-on-serialization) - [Jackson Ignore Properties on Marshalling](https://www.baeldung.com/jackson-ignore-properties-on-serialization)
- [Jackson Unmarshalling json with Unknown Properties](http://www.baeldung.com/jackson-deserialize-json-unknown-properties) - [Jackson Unmarshalling json with Unknown Properties](https://www.baeldung.com/jackson-deserialize-json-unknown-properties)
- [Jackson Annotation Examples](http://www.baeldung.com/jackson-annotations) - [Jackson Annotation Examples](https://www.baeldung.com/jackson-annotations)
- [Intro to the Jackson ObjectMapper](http://www.baeldung.com/jackson-object-mapper-tutorial) - [Intro to the Jackson ObjectMapper](https://www.baeldung.com/jackson-object-mapper-tutorial)
- [Ignore Null Fields with Jackson](http://www.baeldung.com/jackson-ignore-null-fields) - [Ignore Null Fields with Jackson](https://www.baeldung.com/jackson-ignore-null-fields)
- [Jackson Change Name of Field](http://www.baeldung.com/jackson-name-of-property) - [Jackson Change Name of Field](https://www.baeldung.com/jackson-name-of-property)

View File

@ -6,29 +6,29 @@
The "REST With Spring" Classes: http://bit.ly/restwithspring The "REST With Spring" Classes: http://bit.ly/restwithspring
### Relevant Articles: ### Relevant Articles:
- [Jackson Unmarshall to Collection/Array](http://www.baeldung.com/jackson-collection-array) - [Jackson Unmarshall to Collection/Array](https://www.baeldung.com/jackson-collection-array)
- [Jackson Custom Serializer](http://www.baeldung.com/jackson-custom-serialization) - [Jackson Custom Serializer](https://www.baeldung.com/jackson-custom-serialization)
- [Getting Started with Custom Deserialization in Jackson](http://www.baeldung.com/jackson-deserialization) - [Getting Started with Custom Deserialization in Jackson](https://www.baeldung.com/jackson-deserialization)
- [Jackson Exceptions Problems and Solutions](http://www.baeldung.com/jackson-exception) - [Jackson Exceptions Problems and Solutions](https://www.baeldung.com/jackson-exception)
- [Jackson Date](http://www.baeldung.com/jackson-serialize-dates) - [Jackson Date](https://www.baeldung.com/jackson-serialize-dates)
- [Jackson Bidirectional Relationships](http://www.baeldung.com/jackson-bidirectional-relationships-and-infinite-recursion) - [Jackson Bidirectional Relationships](https://www.baeldung.com/jackson-bidirectional-relationships-and-infinite-recursion)
- [Jackson JSON Tutorial](http://www.baeldung.com/jackson) - [Jackson JSON Tutorial](https://www.baeldung.com/jackson)
- [Jackson Working with Maps and nulls](http://www.baeldung.com/jackson-map-null-values-or-null-key) - [Jackson Working with Maps and nulls](https://www.baeldung.com/jackson-map-null-values-or-null-key)
- [Jackson Decide What Fields Get Serialized/Deserialized](http://www.baeldung.com/jackson-field-serializable-deserializable-or-not) - [Jackson Decide What Fields Get Serialized/Deserialized](https://www.baeldung.com/jackson-field-serializable-deserializable-or-not)
- [Jackson vs Gson](http://www.baeldung.com/jackson-vs-gson) - [Jackson vs Gson](https://www.baeldung.com/jackson-vs-gson)
- [XML Serialization and Deserialization with Jackson](http://www.baeldung.com/jackson-xml-serialization-and-deserialization) - [XML Serialization and Deserialization with Jackson](https://www.baeldung.com/jackson-xml-serialization-and-deserialization)
- [More Jackson Annotations](http://www.baeldung.com/jackson-advanced-annotations) - [More Jackson Annotations](https://www.baeldung.com/jackson-advanced-annotations)
- [Inheritance with Jackson](http://www.baeldung.com/jackson-inheritance) - [Inheritance with Jackson](https://www.baeldung.com/jackson-inheritance)
- [Guide to @JsonFormat in Jackson](http://www.baeldung.com/jackson-jsonformat) - [Guide to @JsonFormat in Jackson](https://www.baeldung.com/jackson-jsonformat)
- [Using Optional with Jackson](http://www.baeldung.com/jackson-optional) - [Using Optional with Jackson](https://www.baeldung.com/jackson-optional)
- [Map Serialization and Deserialization with Jackson](http://www.baeldung.com/jackson-map) - [Map Serialization and Deserialization with Jackson](https://www.baeldung.com/jackson-map)
- [Jackson Streaming API](http://www.baeldung.com/jackson-streaming-api) - [Jackson Streaming API](https://www.baeldung.com/jackson-streaming-api)
- [Jackson JsonMappingException (No serializer found for class)](http://www.baeldung.com/jackson-jsonmappingexception) - [Jackson JsonMappingException (No serializer found for class)](https://www.baeldung.com/jackson-jsonmappingexception)
- [How To Serialize Enums as JSON Objects with Jackson](http://www.baeldung.com/jackson-serialize-enums) - [How To Serialize Enums as JSON Objects with Jackson](https://www.baeldung.com/jackson-serialize-enums)
- [Jackson Marshall String to JsonNode](http://www.baeldung.com/jackson-json-to-jsonnode) - [Jackson Marshall String to JsonNode](https://www.baeldung.com/jackson-json-to-jsonnode)
- [Jackson Unmarshall to Collection/Array](http://www.baeldung.com/jackson-collection-array) - [Jackson Unmarshall to Collection/Array](https://www.baeldung.com/jackson-collection-array)
- [Serialize Only Fields that meet a Custom Criteria with Jackson](http://www.baeldung.com/jackson-serialize-field-custom-criteria) - [Serialize Only Fields that meet a Custom Criteria with Jackson](https://www.baeldung.com/jackson-serialize-field-custom-criteria)
- [Mapping Nested Values with Jackson](http://www.baeldung.com/jackson-nested-values) - [Mapping Nested Values with Jackson](https://www.baeldung.com/jackson-nested-values)
- [Convert XML to JSON Using Jackson](https://www.baeldung.com/jackson-convert-xml-json) - [Convert XML to JSON Using Jackson](https://www.baeldung.com/jackson-convert-xml-json)
- [Deserialize Immutable Objects with Jackson](https://www.baeldung.com/jackson-deserialize-immutable-objects) - [Deserialize Immutable Objects with Jackson](https://www.baeldung.com/jackson-deserialize-immutable-objects)
- [Mapping a Dynamic JSON Object with Jackson](https://www.baeldung.com/jackson-mapping-dynamic-object) - [Mapping a Dynamic JSON Object with Jackson](https://www.baeldung.com/jackson-mapping-dynamic-object)

View File

@ -3,12 +3,12 @@
## Java Collections Cookbooks and Examples ## Java Collections Cookbooks and Examples
### Relevant Articles: ### Relevant Articles:
- [Converting between an Array and a List in Java](http://www.baeldung.com/convert-array-to-list-and-list-to-array) - [Converting between an Array and a List in Java](https://www.baeldung.com/convert-array-to-list-and-list-to-array)
- [Converting between an Array and a Set in Java](http://www.baeldung.com/convert-array-to-set-and-set-to-array) - [Converting between an Array and a Set in Java](https://www.baeldung.com/convert-array-to-set-and-set-to-array)
- [Converting between a List and a Set in Java](http://www.baeldung.com/convert-list-to-set-and-set-to-list) - [Converting between a List and a Set in Java](https://www.baeldung.com/convert-list-to-set-and-set-to-list)
- [Convert a Map to an Array, List or Set in Java](http://www.baeldung.com/convert-map-values-to-array-list-set) - [Convert a Map to an Array, List or Set in Java](https://www.baeldung.com/convert-map-values-to-array-list-set)
- [Converting a List to String in Java](http://www.baeldung.com/java-list-to-string) - [Converting a List to String in Java](https://www.baeldung.com/java-list-to-string)
- [How to Convert List to Map in Java](http://www.baeldung.com/java-list-to-map) - [How to Convert List to Map in Java](https://www.baeldung.com/java-list-to-map)
- [Array to String Conversions](https://www.baeldung.com/java-array-to-string) - [Array to String Conversions](https://www.baeldung.com/java-array-to-string)
- [Converting a Collection to ArrayList in Java](https://www.baeldung.com/java-convert-collection-arraylist) - [Converting a Collection to ArrayList in Java](https://www.baeldung.com/java-convert-collection-arraylist)
- [Java 8 Collectors toMap](https://www.baeldung.com/java-collectors-tomap) - [Java 8 Collectors toMap](https://www.baeldung.com/java-collectors-tomap)

View File

@ -1,6 +1,7 @@
## Relevant Articles: ## Relevant Articles:
- [Map of Primitives in Java](https://www.baeldung.com/java-map-primitives) - [Map of Primitives in Java](https://www.baeldung.com/java-map-primitives)
- [Copying a HashMap in Java](https://www.baeldung.com/java-copy-hashmap) - [Copying a HashMap in Java](https://www.baeldung.com/java-copy-hashmap)
- [Guide to Java HashMap]()
- [Guide to WeakHashMap in Java](https://www.baeldung.com/java-weakhashmap) - [Guide to WeakHashMap in Java](https://www.baeldung.com/java-weakhashmap)
- [Map to String Conversion in Java](https://www.baeldung.com/java-map-to-string-conversion) - [Map to String Conversion in Java](https://www.baeldung.com/java-map-to-string-conversion)
- [Iterate over a Map in Java](https://www.baeldung.com/java-iterate-map) - [Iterate over a Map in Java](https://www.baeldung.com/java-iterate-map)

View File

@ -0,0 +1,133 @@
package com.baeldung.map;
import java.util.*;
public class Product {
private String name;
private String description;
private List<String> tags;
public Product(String name, String description) {
this.name = name;
this.description = description;
this.tags = new ArrayList<>();
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public List<String> getTags() {
return tags;
}
public Product addTagsOfOtherProdcut(Product product) {
this.tags.addAll(product.getTags());
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Product product = (Product) o;
return Objects.equals(name, product.name) &&
Objects.equals(description, product.description);
}
@Override
public int hashCode() {
return Objects.hash(name, description);
}
public static void forEach() {
HashMap<String, Product> productsByName = new HashMap<>();
productsByName.forEach( (key, product)
-> System.out.println("Key: " + key + " Product:" + product.getDescription())
//do something with the key and value
);
//Prior to Java 8:
for(Map.Entry<String, Product> entry : productsByName.entrySet()) {
Product product = entry.getValue();
String key = entry.getKey();
//do something with the key and value
}
}
public static void getOrDefault() {
HashMap<String, Product> productsByName = new HashMap<>();
Product chocolate = new Product("chocolate", "something sweet");
Product defaultProduct = productsByName.getOrDefault("horse carriage", chocolate);
Product bike = productsByName.getOrDefault("E-Bike", chocolate);
//Prior to Java 8:
Product bike2 = productsByName.containsKey("E-Bike")
? productsByName.get("E-Bike")
: chocolate;
Product defaultProduct2 = productsByName.containsKey("horse carriage")
? productsByName.get("horse carriage")
: chocolate;
}
public static void putIfAbsent() {
HashMap<String, Product> productsByName = new HashMap<>();
Product chocolate = new Product("chocolate", "something sweet");
productsByName.putIfAbsent("E-Bike", chocolate);
//Prior to Java 8:
if(productsByName.containsKey("E-Bike")) {
productsByName.put("E-Bike", chocolate);
}
}
public static void merge() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike2 = new Product("E-Bike", "A bike with a battery");
eBike2.getTags().add("sport");
productsByName.merge("E-Bike", eBike2, Product::addTagsOfOtherProdcut);
//Prior to Java 8:
if(productsByName.containsKey("E-Bike")) {
productsByName.get("E-Bike").addTagsOfOtherProdcut(eBike2);
} else {
productsByName.put("E-Bike", eBike2);
}
}
public static void compute() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike2 = new Product("E-Bike", "A bike with a battery");
productsByName.compute("E-Bike", (k,v) -> {
if(v != null) {
return v.addTagsOfOtherProdcut(eBike2);
} else {
return eBike2;
}
});
//Prior to Java 8:
if(productsByName.containsKey("E-Bike")) {
productsByName.get("E-Bike").addTagsOfOtherProdcut(eBike2);
} else {
productsByName.put("E-Bike", eBike2);
}
}
}

View File

@ -0,0 +1,124 @@
package com.baeldung.map;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
class ProductUnitTest {
@Test
public void getExistingValue() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
Product roadBike = new Product("Road bike", "A bike for competition");
productsByName.put(eBike.getName(), eBike);
productsByName.put(roadBike.getName(), roadBike);
Product nextPurchase = productsByName.get("E-Bike");
assertEquals("A bike with a battery", nextPurchase.getDescription());
}
@Test
public void getNonExistingValue() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
Product roadBike = new Product("Road bike", "A bike for competition");
productsByName.put(eBike.getName(), eBike);
productsByName.put(roadBike.getName(), roadBike);
Product nextPurchase = productsByName.get("Car");
assertNull(nextPurchase);
}
@Test
public void getExistingValueAfterSameKeyInsertedTwice() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
Product roadBike = new Product("Road bike", "A bike for competition");
Product newEBike = new Product("E-Bike", "A bike with a better battery");
productsByName.put(eBike.getName(), eBike);
productsByName.put(roadBike.getName(), roadBike);
productsByName.put(newEBike.getName(), newEBike);
Product nextPurchase = productsByName.get("E-Bike");
assertEquals("A bike with a better battery", nextPurchase.getDescription());
}
@Test
public void getExistingValueWithNullKey() {
HashMap<String, Product> productsByName = new HashMap<>();
Product defaultProduct = new Product("Chocolate", "At least buy chocolate");
productsByName.put(null, defaultProduct);
productsByName.put(defaultProduct.getName(), defaultProduct);
Product nextPurchase = productsByName.get(null);
assertEquals("At least buy chocolate", nextPurchase.getDescription());
nextPurchase = productsByName.get("Chocolate");
assertEquals("At least buy chocolate", nextPurchase.getDescription());
}
@Test
public void insertSameObjectWithDifferentKey() {
HashMap<String, Product> productsByName = new HashMap<>();
Product defaultProduct = new Product("Chocolate", "At least buy chocolate");
productsByName.put(null, defaultProduct);
productsByName.put(defaultProduct.getName(), defaultProduct);
assertSame(productsByName.get(null), productsByName.get("Chocolate"));
}
@Test
public void checkIfKeyExists() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
productsByName.put(eBike.getName(), eBike);
assertTrue(productsByName.containsKey("E-Bike"));
}
@Test
public void checkIfValueExists() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
productsByName.put(eBike.getName(), eBike);
assertTrue(productsByName.containsValue(eBike));
}
@Test
public void removeExistingKey() {
HashMap<String, Product> productsByName = new HashMap<>();
Product eBike = new Product("E-Bike", "A bike with a battery");
Product roadBike = new Product("Road bike", "A bike for competition");
productsByName.put(eBike.getName(), eBike);
productsByName.put(roadBike.getName(), roadBike);
productsByName.remove("E-Bike");
assertNull(productsByName.get("E-Bike"));
}
}

View File

@ -3,25 +3,25 @@
## Java Dates Cookbooks and Examples ## Java Dates Cookbooks and Examples
### Relevant Articles: ### Relevant Articles:
- [TemporalAdjuster in Java](http://www.baeldung.com/java-temporal-adjuster) - [TemporalAdjuster in Java](https://www.baeldung.com/java-temporal-adjuster)
- [Handling Daylight Savings Time in Java](http://www.baeldung.com/java-daylight-savings) - [Handling Daylight Savings Time in Java](https://www.baeldung.com/java-daylight-savings)
- [Period and Duration in Java](http://www.baeldung.com/java-period-duration) - [Period and Duration in Java](https://www.baeldung.com/java-period-duration)
- [Difference Between Two Dates in Java](http://www.baeldung.com/java-date-difference) - [Difference Between Two Dates in Java](https://www.baeldung.com/java-date-difference)
- [RegEx for matching Date Pattern in Java](http://www.baeldung.com/java-date-regular-expressions) - [RegEx for matching Date Pattern in Java](https://www.baeldung.com/java-date-regular-expressions)
- [Migrating to the New Java 8 Date Time API](http://www.baeldung.com/migrating-to-java-8-date-time-api) - [Migrating to the New Java 8 Date Time API](https://www.baeldung.com/migrating-to-java-8-date-time-api)
- [Introduction to the Java 8 Date/Time API](http://www.baeldung.com/java-8-date-time-intro) - [Introduction to the Java 8 Date/Time API](https://www.baeldung.com/java-8-date-time-intro)
- [Get the Current Date, Time and Timestamp in Java 8](http://www.baeldung.com/current-date-time-and-timestamp-in-java-8) - [Get the Current Date, Time and Timestamp in Java 8](https://www.baeldung.com/current-date-time-and-timestamp-in-java-8)
- [Get Date Without Time in Java](http://www.baeldung.com/java-date-without-time) - [Get Date Without Time in Java](https://www.baeldung.com/java-date-without-time)
- [How to Get All Dates Between Two Dates?](http://www.baeldung.com/java-between-dates) - [How to Get All Dates Between Two Dates?](https://www.baeldung.com/java-between-dates)
- [Convert Date to LocalDate or LocalDateTime and Back](http://www.baeldung.com/java-date-to-localdate-and-localdatetime) - [Convert Date to LocalDate or LocalDateTime and Back](https://www.baeldung.com/java-date-to-localdate-and-localdatetime)
- [Display All Time Zones With GMT And UTC in Java](http://www.baeldung.com/java-time-zones) - [Display All Time Zones With GMT And UTC in Java](https://www.baeldung.com/java-time-zones)
- [Extracting Year, Month and Day from Date in Java](http://www.baeldung.com/java-year-month-day) - [Extracting Year, Month and Day from Date in Java](https://www.baeldung.com/java-year-month-day)
- [Guide to java.util.GregorianCalendar](http://www.baeldung.com/java-gregorian-calendar) - [Guide to java.util.GregorianCalendar](https://www.baeldung.com/java-gregorian-calendar)
- [Measure Elapsed Time in Java](http://www.baeldung.com/java-measure-elapsed-time) - [Measure Elapsed Time in Java](https://www.baeldung.com/java-measure-elapsed-time)
- [How to Get the Start and the End of a Day using Java](http://www.baeldung.com/java-day-start-end) - [How to Get the Start and the End of a Day using Java](https://www.baeldung.com/java-day-start-end)
- [Calculate Age in Java](http://www.baeldung.com/java-get-age) - [Calculate Age in Java](https://www.baeldung.com/java-get-age)
- [Increment Date in Java](http://www.baeldung.com/java-increment-date) - [Increment Date in Java](https://www.baeldung.com/java-increment-date)
- [Add Hours To a Date In Java](http://www.baeldung.com/java-add-hours-date) - [Add Hours To a Date In Java](https://www.baeldung.com/java-add-hours-date)
- [Guide to DateTimeFormatter](https://www.baeldung.com/java-datetimeformatter) - [Guide to DateTimeFormatter](https://www.baeldung.com/java-datetimeformatter)
- [Format ZonedDateTime to String](https://www.baeldung.com/java-format-zoned-datetime-string) - [Format ZonedDateTime to String](https://www.baeldung.com/java-format-zoned-datetime-string)
- [Convert Between java.time.Instant and java.sql.Timestamp](https://www.baeldung.com/java-time-instant-to-java-sql-timestamp) - [Convert Between java.time.Instant and java.sql.Timestamp](https://www.baeldung.com/java-time-instant-to-java-sql-timestamp)
@ -29,4 +29,4 @@
- [A Guide to SimpleDateFormat](https://www.baeldung.com/java-simple-date-format) - [A Guide to SimpleDateFormat](https://www.baeldung.com/java-simple-date-format)
- [ZoneOffset in Java](https://www.baeldung.com/java-zone-offset) - [ZoneOffset in Java](https://www.baeldung.com/java-zone-offset)
- [Differences Between ZonedDateTime and OffsetDateTime](https://www.baeldung.com/java-zoneddatetime-offsetdatetime) - [Differences Between ZonedDateTime and OffsetDateTime](https://www.baeldung.com/java-zoneddatetime-offsetdatetime)
- [Introduction to Joda-Time](http://www.baeldung.com/joda-time) - [Introduction to Joda-Time](https://www.baeldung.com/joda-time)

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [Java EE 8 Security API](http://www.baeldung.com/java-ee-8-security) - [Java EE 8 Security API](https://www.baeldung.com/java-ee-8-security)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [A Guide to JavaLite Building a RESTful CRUD application](http://www.baeldung.com/javalite-rest) - [A Guide to JavaLite Building a RESTful CRUD application](https://www.baeldung.com/javalite-rest)
- [Introduction to ActiveWeb](http://www.baeldung.com/activeweb) - [Introduction to ActiveWeb](https://www.baeldung.com/activeweb)

View File

@ -2,9 +2,10 @@
- [Lossy Conversion in Java](https://www.baeldung.com/java-lossy-conversion) - [Lossy Conversion in Java](https://www.baeldung.com/java-lossy-conversion)
- [A Guide to the Java Math Class](https://www.baeldung.com/java-lang-math) - [A Guide to the Java Math Class](https://www.baeldung.com/java-lang-math)
- [Calculate the Area of a Circle in Java](https://www.baeldung.com/java-calculate-circle-area) - [Calculate the Area of a Circle in Java](https://www.baeldung.com/java-calculate-circle-area)
- [NaN in Java](http://www.baeldung.com/java-not-a-number) - [NaN in Java](https://www.baeldung.com/java-not-a-number)
- [Generating Prime Numbers in Java](http://www.baeldung.com/java-generate-prime-numbers) - [Generating Prime Numbers in Java](https://www.baeldung.com/java-generate-prime-numbers)
- [Using Math.pow in Java](http://www.baeldung.com/java-math-pow) - [Using Math.pow in Java](https://www.baeldung.com/java-math-pow)
- [Check If a Number Is Prime in Java](http://www.baeldung.com/java-prime-numbers) - [Check If a Number Is Prime in Java](https://www.baeldung.com/java-prime-numbers)
- [Binary Numbers in Java](https://www.baeldung.com/java-binary-numbers) - [Binary Numbers in Java](https://www.baeldung.com/java-binary-numbers)
- [Finding the Least Common Multiple in Java](https://www.baeldung.com/java-least-common-multiple) - [Finding the Least Common Multiple in Java](https://www.baeldung.com/java-least-common-multiple)
- [Binary Numbers in Java](https://www.baeldung.com/java-binary-numbers)

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [Getting Started with Java RMI](http://www.baeldung.com/java-rmi) - [Getting Started with Java RMI](https://www.baeldung.com/java-rmi)

View File

@ -1,4 +1,4 @@
### Relevant Articles: ### Relevant Articles:
- [Java Service Provider Interface](http://www.baeldung.com/java-spi) - [Java Service Provider Interface](https://www.baeldung.com/java-spi)

View File

@ -3,15 +3,15 @@
## Java Streams Cookbooks and Examples ## Java Streams Cookbooks and Examples
### Relevant Articles: ### Relevant Articles:
- [The Java 8 Stream API Tutorial](http://www.baeldung.com/java-8-streams) - [The Java 8 Stream API Tutorial](https://www.baeldung.com/java-8-streams)
- [Introduction to Java 8 Streams](http://www.baeldung.com/java-8-streams-introduction) - [Introduction to Java 8 Streams](https://www.baeldung.com/java-8-streams-introduction)
- [Java 8 and Infinite Streams](http://www.baeldung.com/java-inifinite-streams) - [Java 8 and Infinite Streams](https://www.baeldung.com/java-inifinite-streams)
- [Java 8 Stream findFirst() vs. findAny()](http://www.baeldung.com/java-stream-findfirst-vs-findany) - [Java 8 Stream findFirst() vs. findAny()](https://www.baeldung.com/java-stream-findfirst-vs-findany)
- [How to Get the Last Element of a Stream in Java?](http://www.baeldung.com/java-stream-last-element) - [How to Get the Last Element of a Stream in Java?](https://www.baeldung.com/java-stream-last-element)
- [“Stream has already been operated upon or closed” Exception in Java](http://www.baeldung.com/java-stream-operated-upon-or-closed-exception) - [“Stream has already been operated upon or closed” Exception in Java](https://www.baeldung.com/java-stream-operated-upon-or-closed-exception)
- [Iterable to Stream in Java](http://www.baeldung.com/java-iterable-to-stream) - [Iterable to Stream in Java](https://www.baeldung.com/java-iterable-to-stream)
- [How to Iterate Over a Stream With Indices](http://www.baeldung.com/java-stream-indices) - [How to Iterate Over a Stream With Indices](https://www.baeldung.com/java-stream-indices)
- [Primitive Type Streams in Java 8](http://www.baeldung.com/java-8-primitive-streams) - [Primitive Type Streams in Java 8](https://www.baeldung.com/java-8-primitive-streams)
- [Stream Ordering in Java](https://www.baeldung.com/java-stream-ordering) - [Stream Ordering in Java](https://www.baeldung.com/java-stream-ordering)
- [Introduction to Protonpack](https://www.baeldung.com/java-protonpack) - [Introduction to Protonpack](https://www.baeldung.com/java-protonpack)
- [Java Stream Filter with Lambda Expression](https://www.baeldung.com/java-stream-filter-lambda) - [Java Stream Filter with Lambda Expression](https://www.baeldung.com/java-stream-filter-lambda)

View File

@ -3,8 +3,8 @@
- [Java Localization Formatting Messages](https://www.baeldung.com/java-localization-messages-formatting) - [Java Localization Formatting Messages](https://www.baeldung.com/java-localization-messages-formatting)
- [Check If a String Contains a Substring](https://www.baeldung.com/java-string-contains-substring) - [Check If a String Contains a Substring](https://www.baeldung.com/java-string-contains-substring)
- [Removing Stopwords from a String in Java](https://www.baeldung.com/java-string-remove-stopwords) - [Removing Stopwords from a String in Java](https://www.baeldung.com/java-string-remove-stopwords)
- [Java Generate Random String](http://www.baeldung.com/java-random-string) - [Java Generate Random String](https://www.baeldung.com/java-random-string)
- [Image to Base64 String Conversion](http://www.baeldung.com/java-base64-image-string) - [Image to Base64 String Conversion](https://www.baeldung.com/java-base64-image-string)
- [Java Base64 Encoding and Decoding](https://www.baeldung.com/java-base64-encode-and-decode) - [Java Base64 Encoding and Decoding](https://www.baeldung.com/java-base64-encode-and-decode)
- [Generate a Secure Random Password in Java](https://www.baeldung.com/java-generate-secure-password) - [Generate a Secure Random Password in Java](https://www.baeldung.com/java-generate-secure-password)
- [Removing Repeated Characters from a String](https://www.baeldung.com/java-remove-repeated-char) - [Removing Repeated Characters from a String](https://www.baeldung.com/java-remove-repeated-char)
@ -12,7 +12,7 @@
- [Pad a String with Zeros or Spaces in Java](https://www.baeldung.com/java-pad-string) - [Pad a String with Zeros or Spaces in Java](https://www.baeldung.com/java-pad-string)
- [Remove Emojis from a Java String](https://www.baeldung.com/java-string-remove-emojis) - [Remove Emojis from a Java String](https://www.baeldung.com/java-string-remove-emojis)
- [Convert a Comma Separated String to a List in Java](https://www.baeldung.com/java-string-with-separator-to-list) - [Convert a Comma Separated String to a List in Java](https://www.baeldung.com/java-string-with-separator-to-list)
- [Guide to java.util.Formatter](http://www.baeldung.com/java-string-formatter) - [Guide to java.util.Formatter](https://www.baeldung.com/java-string-formatter)
- [Remove Leading and Trailing Characters from a String](https://www.baeldung.com/java-remove-trailing-characters) - [Remove Leading and Trailing Characters from a String](https://www.baeldung.com/java-remove-trailing-characters)
- [Concatenating Strings In Java](https://www.baeldung.com/java-strings-concatenation) - [Concatenating Strings In Java](https://www.baeldung.com/java-strings-concatenation)
- [Java String Interview Questions and Answers](https://www.baeldung.com/java-string-interview-questions) - [Java String Interview Questions and Answers](https://www.baeldung.com/java-string-interview-questions)
@ -24,3 +24,4 @@
- [Checking If a String Is a Repeated Substring](https://www.baeldung.com/java-repeated-substring) - [Checking If a String Is a Repeated Substring](https://www.baeldung.com/java-repeated-substring)
- [How to Reverse a String in Java](https://www.baeldung.com/java-reverse-string) - [How to Reverse a String in Java](https://www.baeldung.com/java-reverse-string)
- [String toLowerCase and toUpperCase Methods in Java](https://www.baeldung.com/java-string-convert-case) - [String toLowerCase and toUpperCase Methods in Java](https://www.baeldung.com/java-string-convert-case)
- [Guide to StreamTokenizer](https://www.baeldung.com/java-streamtokenizer)

View File

@ -3,20 +3,20 @@
## Java Strings Cookbooks and Examples ## Java Strings Cookbooks and Examples
### Relevant Articles: ### Relevant Articles:
- [Convert char to String in Java](http://www.baeldung.com/java-convert-char-to-string) - [Convert char to String in Java](https://www.baeldung.com/java-convert-char-to-string)
- [Convert String to int or Integer in Java](http://www.baeldung.com/java-convert-string-to-int-or-integer) - [Convert String to int or Integer in Java](https://www.baeldung.com/java-convert-string-to-int-or-integer)
- [Java String Conversions](https://www.baeldung.com/java-string-conversions) - [Java String Conversions](https://www.baeldung.com/java-string-conversions)
- [Check if a String is a Palindrome](http://www.baeldung.com/java-palindrome) - [Check if a String is a Palindrome](https://www.baeldung.com/java-palindrome)
- [Comparing Strings in Java](http://www.baeldung.com/java-compare-strings) - [Comparing Strings in Java](https://www.baeldung.com/java-compare-strings)
- [Check If a String Is Numeric in Java](http://www.baeldung.com/java-check-string-number) - [Check If a String Is Numeric in Java](https://www.baeldung.com/java-check-string-number)
- [Get Substring from String in Java](https://www.baeldung.com/java-substring) - [Get Substring from String in Java](https://www.baeldung.com/java-substring)
- [How to Remove the Last Character of a String?](http://www.baeldung.com/java-remove-last-character-of-string) - [How to Remove the Last Character of a String?](https://www.baeldung.com/java-remove-last-character-of-string)
- [Add a Character to a String at a Given Position](https://www.baeldung.com/java-add-character-to-string) - [Add a Character to a String at a Given Position](https://www.baeldung.com/java-add-character-to-string)
- [Count Occurrences of a Char in a String](http://www.baeldung.com/java-count-chars) - [Count Occurrences of a Char in a String](https://www.baeldung.com/java-count-chars)
- [Guide to Java String Pool](http://www.baeldung.com/java-string-pool) - [Guide to Java String Pool](https://www.baeldung.com/java-string-pool)
- [Split a String in Java](http://www.baeldung.com/java-split-string) - [Split a String in Java](https://www.baeldung.com/java-split-string)
- [Common String Operations in Java](https://www.baeldung.com/java-string-operations) - [Common String Operations in Java](https://www.baeldung.com/java-string-operations)
- [Convert String to Byte Array and Reverse in Java](https://www.baeldung.com/java-string-to-byte-array) - [Convert String to Byte Array and Reverse in Java](https://www.baeldung.com/java-string-to-byte-array)
- [Java toString() Method](https://www.baeldung.com/java-tostring) - [Java toString() Method](https://www.baeldung.com/java-tostring)
- [CharSequence vs. String in Java](http://www.baeldung.com/java-char-sequence-string) - [CharSequence vs. String in Java](https://www.baeldung.com/java-char-sequence-string)
- [StringBuilder and StringBuffer in Java](http://www.baeldung.com/java-string-builder-string-buffer) - [StringBuilder and StringBuffer in Java](https://www.baeldung.com/java-string-builder-string-buffer)

View File

@ -3,14 +3,14 @@
## Java Strings Cookbooks and Examples ## Java Strings Cookbooks and Examples
### Relevant Articles: ### Relevant Articles:
- [String Operations with Java Streams](http://www.baeldung.com/java-stream-operations-on-strings) - [String Operations with Java Streams](https://www.baeldung.com/java-stream-operations-on-strings)
- [Converting String to Stream of chars](http://www.baeldung.com/java-string-to-stream) - [Converting String to Stream of chars](https://www.baeldung.com/java-string-to-stream)
- [Java 8 StringJoiner](http://www.baeldung.com/java-string-joiner) - [Java 8 StringJoiner](https://www.baeldung.com/java-string-joiner)
- [Converting Strings to Enums in Java](http://www.baeldung.com/java-string-to-enum) - [Converting Strings to Enums in Java](https://www.baeldung.com/java-string-to-enum)
- [Quick Guide to the Java StringTokenizer](http://www.baeldung.com/java-stringtokenizer) - [Quick Guide to the Java StringTokenizer](https://www.baeldung.com/java-stringtokenizer)
- [Use char[] Array Over a String for Manipulating Passwords in Java?](http://www.baeldung.com/java-storing-passwords) - [Use char[] Array Over a String for Manipulating Passwords in Java?](https://www.baeldung.com/java-storing-passwords)
- [Convert a String to Title Case](http://www.baeldung.com/java-string-title-case) - [Convert a String to Title Case](https://www.baeldung.com/java-string-title-case)
- [Compact Strings in Java 9](http://www.baeldung.com/java-9-compact-string) - [Compact Strings in Java 9](https://www.baeldung.com/java-9-compact-string)
- [Java Check a String for Lowercase/Uppercase Letter, Special Character and Digit](https://www.baeldung.com/java-lowercase-uppercase-special-character-digit-regex) - [Java Check a String for Lowercase/Uppercase Letter, Special Character and Digit](https://www.baeldung.com/java-lowercase-uppercase-special-character-digit-regex)
- [Convert java.util.Date to String](https://www.baeldung.com/java-util-date-to-string) - [Convert java.util.Date to String](https://www.baeldung.com/java-util-date-to-string)
- [Converting a Stack Trace to a String in Java](https://www.baeldung.com/java-stacktrace-to-string) - [Converting a Stack Trace to a String in Java](https://www.baeldung.com/java-stacktrace-to-string)

View File

@ -1,5 +1,5 @@
### Relevant Articles: ### Relevant Articles:
- [Java Streams vs Vavr Streams](http://www.baeldung.com/vavr-java-streams) - [Java Streams vs Vavr Streams](https://www.baeldung.com/vavr-java-streams)

Some files were not shown because too many files have changed in this diff Show More