This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void getJson(@Suspended final AsyncResponse async) throws NoSuchAlgorithmException, KeyManagementException { | |
| Client client = getUnsecureClient(); | |
| LocationDetails locDetails = new LocationDetails(); | |
| CompletionStage<JsonObject> cfIp = client.target("http://api.ipify.org/") | |
| .queryParam("format", "json") | |
| .request() | |
| .rx() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.runners.model.InitializationError; | |
| import org.openjdk.jmh.results.IterationResult; | |
| import org.openjdk.jmh.results.RunResult; | |
| import org.openjdk.jmh.runner.Runner; | |
| import org.openjdk.jmh.runner.RunnerException; | |
| import org.openjdk.jmh.runner.options.Options; | |
| import java.util.Collection; | |
| import java.util.Comparator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.paumard.movies.model; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlAttribute; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlElementWrapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.paumard.movies.model; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlAttribute; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| @XmlRootElement | |
| @XmlAccessorType(XmlAccessType.FIELD) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.paumard.movies.model; | |
| import java.util.Set; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| @XmlRootElement(name="movies") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <movies> | |
| <movie id="3301"> | |
| <title>Deuces Wild</title> | |
| <release-year>2002</release-year> | |
| <actors> | |
| <actor id="59716"> | |
| <first-name>Angela</first-name> | |
| <last-name>DiLiberto</last-name> | |
| </actor> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.paumard.combination; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.function.Function; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.Stream; | |
| public class Combination { |
NewerOlder