FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rethinkdb-java/templates/GlobalOptions.java at master · rethinkdb/rethinkdb-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
rethinkdb
/
rethinkdb-java
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
9
Star
22
Code
Issues
22
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rethinkdb-java
/
templates
/
GlobalOptions.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (29 loc) · 990 Bytes
Breadcrumbs
rethinkdb-java
/
templates
/
GlobalOptions.java
Copy path
File metadata and controls
40 lines (29 loc) · 990 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package
com
.
rethinkdb
.
gen
.
model
;
import
java
.
util
.*;
import
com
.
rethinkdb
.
model
.*;
import
com
.
rethinkdb
.
gen
.
ast
.*;
public
class
GlobalOptions
{
%
for
option_name
,
type_
in
global_optargs
:
private
Optional
<
$
{
type_
}>
_$
{
option_name
} =
Optional
.
empty
();
%
endfor
public
OptArgs
toOptArgs
() {
OptArgs
ret
=
new
OptArgs
();
%
for
option_name
,
type_
in
global_optargs
:
_$
{
option_name
}.
ifPresent
(
val
->
ret
.
with
(
"${option_name}"
,
val
));
%
endfor
return
ret
;
}
%
for
option_name
,
type_
in
global_optargs
:
public
static
GlobalOptions
with$
{
camel
(
option_name
)}(
$
{
type_
}
$
{
option_name
}) {
return
new
GlobalOptions
().
$
{
option_name
}(
$
{
option_name
});
}
public
GlobalOptions
$
{
option_name
}(
$
{
type_
}
$
{
option_name
}) {
_$
{
option_name
} =
Optional
.
of
(
$
{
option_name
});
return
this
;
}
public
Optional
<
$
{
type_
}>
$
{
option_name
}() {
return
_$
{
option_name
};
}
%
endfor
}
Back
|
FazBrowse Home
|
New Git URL