-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
197 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package io.moderne.organizations.types; | ||
|
||
import java.lang.Object; | ||
import java.lang.Override; | ||
import java.lang.String; | ||
|
||
public class Commit { | ||
private String message; | ||
|
||
private String extendedMessage; | ||
|
||
public Commit() { | ||
} | ||
|
||
public Commit(String message, String extendedMessage) { | ||
this.message = message; | ||
this.extendedMessage = extendedMessage; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getExtendedMessage() { | ||
return extendedMessage; | ||
} | ||
|
||
public void setExtendedMessage(String extendedMessage) { | ||
this.extendedMessage = extendedMessage; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Commit{" + "message='" + message + "'," +"extendedMessage='" + extendedMessage + "'" +"}"; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Commit that = (Commit) o; | ||
return java.util.Objects.equals(message, that.message) && | ||
java.util.Objects.equals(extendedMessage, that.extendedMessage); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return java.util.Objects.hash(message, extendedMessage); | ||
} | ||
|
||
public static io.moderne.organizations.types.Commit.Builder newBuilder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder { | ||
private String message; | ||
|
||
private String extendedMessage; | ||
|
||
public Commit build() { | ||
io.moderne.organizations.types.Commit result = new io.moderne.organizations.types.Commit(); | ||
result.message = this.message; | ||
result.extendedMessage = this.extendedMessage; | ||
return result; | ||
} | ||
|
||
public io.moderne.organizations.types.Commit.Builder message(String message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
public io.moderne.organizations.types.Commit.Builder extendedMessage(String extendedMessage) { | ||
this.extendedMessage = extendedMessage; | ||
return this; | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
src/main/java/io/moderne/organizations/types/CommitInput.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package io.moderne.organizations.types; | ||
|
||
import java.lang.Object; | ||
import java.lang.Override; | ||
import java.lang.String; | ||
|
||
public class CommitInput { | ||
private String message; | ||
|
||
private String extendedMessage; | ||
|
||
public CommitInput() { | ||
} | ||
|
||
public CommitInput(String message, String extendedMessage) { | ||
this.message = message; | ||
this.extendedMessage = extendedMessage; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getExtendedMessage() { | ||
return extendedMessage; | ||
} | ||
|
||
public void setExtendedMessage(String extendedMessage) { | ||
this.extendedMessage = extendedMessage; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CommitInput{" + "message='" + message + "'," +"extendedMessage='" + extendedMessage + "'" +"}"; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CommitInput that = (CommitInput) o; | ||
return java.util.Objects.equals(message, that.message) && | ||
java.util.Objects.equals(extendedMessage, that.extendedMessage); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return java.util.Objects.hash(message, extendedMessage); | ||
} | ||
|
||
public static io.moderne.organizations.types.CommitInput.Builder newBuilder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder { | ||
private String message; | ||
|
||
private String extendedMessage; | ||
|
||
public CommitInput build() { | ||
io.moderne.organizations.types.CommitInput result = new io.moderne.organizations.types.CommitInput(); | ||
result.message = this.message; | ||
result.extendedMessage = this.extendedMessage; | ||
return result; | ||
} | ||
|
||
public io.moderne.organizations.types.CommitInput.Builder message(String message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
public io.moderne.organizations.types.CommitInput.Builder extendedMessage( | ||
String extendedMessage) { | ||
this.extendedMessage = extendedMessage; | ||
return this; | ||
} | ||
} | ||
} |
This file contains 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