Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
c17f960b
Commit
c17f960b
authored
Jul 07, 2019
by
Greg Messner
Browse files
Fixed links in TOC.
parent
cc5d735c
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c17f960b
...
...
@@ -7,23 +7,23 @@ GitLab4J™ API (gitlab4j-api) provides a full featured and easy to consume
---
## Table of Contents
*
[
GitLab Server Version Support
](
#gitLab
%20
server
%20
version
%20
support
)
<br/>
*
[
Using GitLab4J-API
](
#using
%20
gitlab4j-api
)
<br/>
*
[
Java 8 Requirement
](
#java
%208%20
requirement
)
<br/>
*
[
GitLab Server Version Support
](
#gitLab
-
server
-
version
-
support
)
<br/>
*
[
Using GitLab4J-API
](
#using
-
gitlab4j-api
)
<br/>
*
[
Java 8 Requirement
](
#java
-8-
requirement
)
<br/>
*
[
Javadocs
](
#javadocs
)
<br/>
*
[
Project Set Up
](
#project
%20set%20
up
)
<br/>
*
[
Usage Examples
](
#usage
%20
examples
)
<br/>
*
[
Connecting Through a Proxy Server
](
#connecting
%20
through
%20a%20
proxy
%20
server
)
<br/>
*
[
GitLab API V3 and V4 Support
](
#gitLab
%20api%20v3%20and%20v4%20
support
)
<br/>
*
[
Logging of API Requests and Responses
](
#logging
%20of%20api%20requests%20and%20
responses
)
<br/>
*
[
Results Paging
](
#results
%20
paging
)
<br/>
*
[
Java 8 Stream Support
](
#java
%208%20
stream
%20
support
)
<br/>
*
[
Eager evaluation example usage
](
#eager
%20
evaluation
%20
example
%20
usage
)
<br/>
*
[
Lazy evaluation example usage
](
#lazy%20evaluation
%20
example
%20
usage
)
<br/>
*
[
Java 8 Optional<T> Support
](
#java
%208%20
optional
<T>%20
support
)
<br/>
*
[
Issue Time Estimates
](
#issue
%20
time
%20
estimates
)
<br/>
*
[
Making API Calls
](
#making
%20api%20
calls
)
<br/>
*
[
Available Sub APIs
](
#available
%20sub%20
apis
)
*
[
Project Set Up
](
#project
-set-
up
)
<br/>
*
[
Usage Examples
](
#usage
-
examples
)
<br/>
*
[
Connecting Through a Proxy Server
](
#connecting
-
through
-a-
proxy
-
server
)
<br/>
*
[
GitLab API V3 and V4 Support
](
#gitLab
-api-v3-and-v4-
support
)
<br/>
*
[
Logging of API Requests and Responses
](
#logging
-of-api-requests-and-
responses
)
<br/>
*
[
Results Paging
](
#results
-
paging
)
<br/>
*
[
Java 8 Stream Support
](
#java
-8-
stream
-
support
)
<br/>
*
[
Eager evaluation example usage
](
#eager
-
evaluation
-
example
-
usage
)
<br/>
*
[
Lazy evaluation example usage
](
#lazy%20evaluation
-
example
-
usage
)
<br/>
*
[
Java 8 Optional<T> Support
](
#java
-8-
optional
-
support
)
<br/>
*
[
Issue Time Estimates
](
#issue
-
time
-
estimates
)
<br/>
*
[
Making API Calls
](
#making
-pi-
calls
)
<br/>
*
[
Available Sub APIs
](
#available
-sub-
apis
)
---
## GitLab Server Version Support
...
...
@@ -216,7 +216,7 @@ projectPager.lazyStream().limit(5).map(Project::getName).forEach(name -> System.
---
### **Java 8 Optional
<T>
Support**
### **Java 8 Optional Support**
GitLab4J-API supports Java 8 Optional
<
T
>
for API calls that result in the return of a single item. Here is an example on how to use the Java 8 Optional
<
T
>
API calls:
```
java
Optional
<
Group
>
optionalGroup
=
gitlabApi
.
getGroupApi
().
getGroup
(
"my-group-path"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment