Unverified Commit 210b4770 authored by Greg Messner's avatar Greg Messner Committed by GitHub
Browse files

Corrected section on Java 8 Optional<T> support.

parent c666e172
......@@ -95,7 +95,7 @@ while (projectsPager.hasNext())) {
```
---
## Java 8 Optional&lt;T&gt; Support
GitLab4J-API supports Java 8 Optional&lt;T&gt; for API calls that result in the return of a single item. Here are a couple of examples on how to use the Java 8 Optional&lt;T&gt; API calls:
GitLab4J-API supports Java 8 Optional&lt;T&gt; for API calls that result in the return of a single item. Here is an example on how to use the Java 8 Optional&lt;T&gt; API calls:
```java
Optional<Group> optionalGroup = gitlabApi.getGroupApi().getGroup("my-group-path");
if (optionalGroup.isPresent())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment