-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from neboskreb/25-support-java-11
Support Java 11
- Loading branch information
Showing
7 changed files
with
61 additions
and
12 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
23 changes: 22 additions & 1 deletion
23
red-and-blue/src/main/java/com/github/neboskreb/red/and/blue/RedAndBlue.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 |
---|---|---|
@@ -1,4 +1,25 @@ | ||
package com.github.neboskreb.red.and.blue; | ||
|
||
record RedAndBlue<T>(Class<T> clazz, T red, T blue) { | ||
final public class RedAndBlue<T> { | ||
private final Class<T> clazz; | ||
private final T red; | ||
private final T blue; | ||
|
||
public RedAndBlue(Class<T> clazz, T red, T blue) { | ||
this.clazz = clazz; | ||
this.red = red; | ||
this.blue = blue; | ||
} | ||
|
||
public Class<T> clazz() { | ||
return clazz; | ||
} | ||
|
||
public T red() { | ||
return red; | ||
} | ||
|
||
public T blue() { | ||
return blue; | ||
} | ||
} |
11 changes: 10 additions & 1 deletion
11
red-and-blue/src/test/java/com/github/neboskreb/red/and/blue/model/CompositeInteger.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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
package com.github.neboskreb.red.and.blue.model; | ||
|
||
public record CompositeInteger(Integer value) { | ||
public final class CompositeInteger { | ||
private final Integer value; | ||
|
||
CompositeInteger(Integer value) { | ||
this.value = value; | ||
} | ||
|
||
public Integer value() { | ||
return value; | ||
} | ||
} |
11 changes: 10 additions & 1 deletion
11
red-and-blue/src/test/java/com/github/neboskreb/red/and/blue/model/CompositeLong.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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
package com.github.neboskreb.red.and.blue.model; | ||
|
||
public record CompositeLong(Long value) { | ||
public final class CompositeLong { | ||
private final Long value; | ||
|
||
CompositeLong(Long value) { | ||
this.value = value; | ||
} | ||
|
||
public Long value() { | ||
return value; | ||
} | ||
} |
11 changes: 10 additions & 1 deletion
11
red-and-blue/src/test/java/com/github/neboskreb/red/and/blue/model/CompositeString.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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
package com.github.neboskreb.red.and.blue.model; | ||
|
||
public record CompositeString(String value) { | ||
public final class CompositeString { | ||
private final String value; | ||
|
||
CompositeString(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String value() { | ||
return value; | ||
} | ||
} |