This repository was archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Added new parameter #18
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c0a5588
Added Int, List, Boolean and Double parameter
derNiklaas a0a2121
Added Map parameter
derNiklaas fe63a37
Added javadoc stuff
derNiklaas 89c83ae
Added Color parameter
derNiklaas 3912a1f
Added URI parameter
derNiklaas bbac4ca
Updated javadoc to show the right type
derNiklaas efa5a48
Added Javadoc to UriParameter
derNiklaas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/BooleanParameter.java
This file contains hidden or 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,10 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
/** | ||
* A {@link Parameter} that is a boolean | ||
*/ | ||
@IsRequirement | ||
public interface BooleanParameter extends Parameter<Boolean> { | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/ColorParameter.java
This file contains hidden or 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,12 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
import java.awt.*; | ||
|
||
/** | ||
* A {@link Parameter} that is a boolean | ||
*/ | ||
@IsRequirement | ||
public interface ColorParameter extends Parameter<Color> { | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/DoubleParameter.java
This file contains hidden or 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,10 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
/** | ||
* A {@link Parameter} that is a double | ||
*/ | ||
@IsRequirement | ||
public interface DoubleParameter extends Parameter<Double> { | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/IntegerParameter.java
This file contains hidden or 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,10 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
/** | ||
* a {@link Parameter} that is a integer | ||
*/ | ||
@IsRequirement | ||
public interface IntegerParameter extends Parameter<Integer> { | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/ListParameter.java
This file contains hidden or 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,12 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* A {@link Parameter} that is a List<String> | ||
*/ | ||
@IsRequirement | ||
public interface ListParameter extends Parameter<List<String>>{ | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/MapParameter.java
This file contains hidden or 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,12 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* A {@link Parameter} that is a Map<String, String> | ||
*/ | ||
@IsRequirement | ||
public interface MapParameter extends Parameter<Map<String, String>> { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/org/codeoverflow/chatoverflow/api/io/parameter/UriParameter.java
This file contains hidden or 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,9 @@ | ||
package org.codeoverflow.chatoverflow.api.io.parameter; | ||
|
||
import org.codeoverflow.chatoverflow.api.IsRequirement; | ||
|
||
import java.net.URI; | ||
|
||
@IsRequirement | ||
public interface UriParameter extends Parameter<URI> { | ||
} | ||
derNiklaas marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.