Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
1d68180a
Commit
1d68180a
authored
11 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Added isValid() method.
parent
4b96587f
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/main/java/com/messners/gitlab/api/models/Branch.java
+4
-0
src/main/java/com/messners/gitlab/api/models/Branch.java
src/main/java/com/messners/gitlab/api/models/MergeRequest.java
+4
-0
...ain/java/com/messners/gitlab/api/models/MergeRequest.java
src/main/java/com/messners/gitlab/api/models/Project.java
+4
-0
src/main/java/com/messners/gitlab/api/models/Project.java
src/main/java/com/messners/gitlab/api/models/User.java
+4
-0
src/main/java/com/messners/gitlab/api/models/User.java
with
16 additions
and
0 deletions
+16
-0
src/main/java/com/messners/gitlab/api/models/Branch.java
+
4
-
0
View file @
1d68180a
...
@@ -36,4 +36,8 @@ public class Branch {
...
@@ -36,4 +36,8 @@ public class Branch {
public
void
setProtected
(
Boolean
isProtected
)
{
public
void
setProtected
(
Boolean
isProtected
)
{
this
.
isProtected
=
isProtected
;
this
.
isProtected
=
isProtected
;
}
}
public
static
final
boolean
isValid
(
Branch
branch
)
{
return
(
branch
!=
null
&&
branch
.
getName
()
!=
null
);
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/com/messners/gitlab/api/models/MergeRequest.java
+
4
-
0
View file @
1d68180a
...
@@ -107,4 +107,8 @@ public class MergeRequest {
...
@@ -107,4 +107,8 @@ public class MergeRequest {
public
void
setUpvotes
(
Integer
upvotes
)
{
public
void
setUpvotes
(
Integer
upvotes
)
{
this
.
upvotes
=
upvotes
;
this
.
upvotes
=
upvotes
;
}
}
public
static
final
boolean
isValid
(
MergeRequest
mergeRequest
)
{
return
(
mergeRequest
!=
null
&&
mergeRequest
.
getId
()
!=
null
);
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/com/messners/gitlab/api/models/Project.java
+
4
-
0
View file @
1d68180a
...
@@ -201,4 +201,8 @@ public class Project {
...
@@ -201,4 +201,8 @@ public class Project {
public
void
setWikiEnabled
(
Boolean
wikiEnabled
)
{
public
void
setWikiEnabled
(
Boolean
wikiEnabled
)
{
this
.
wikiEnabled
=
wikiEnabled
;
this
.
wikiEnabled
=
wikiEnabled
;
}
}
public
static
final
boolean
isValid
(
Project
project
)
{
return
(
project
!=
null
&&
project
.
getId
()
!=
null
);
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/com/messners/gitlab/api/models/User.java
+
4
-
0
View file @
1d68180a
...
@@ -163,4 +163,8 @@ public class User {
...
@@ -163,4 +163,8 @@ public class User {
public
void
setWebsiteUrl
(
String
websiteUrl
)
{
public
void
setWebsiteUrl
(
String
websiteUrl
)
{
this
.
websiteUrl
=
websiteUrl
;
this
.
websiteUrl
=
websiteUrl
;
}
}
public
static
final
boolean
isValid
(
User
user
)
{
return
(
user
!=
null
&&
user
.
getId
()
!=
null
);
}
}
}
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets