-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
a816701
commit 1c6a1ef
Showing
5 changed files
with
22 additions
and
19 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
15 changes: 9 additions & 6 deletions
15
client/src/main/java/io/split/inputValidation/FSValidatorResult.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,21 +1,24 @@ | ||
package io.split.inputValidation; | ||
|
||
import java.util.List; | ||
import java.util.HashSet; | ||
import java.util.LinkedHashSet; | ||
import java.util.Set; | ||
import java.util.TreeSet; | ||
|
||
public class FSValidatorResult { | ||
private final List<String> _flagSets; | ||
private final Set<String> _flagSets; | ||
private final int _invalidSets; | ||
|
||
public FSValidatorResult(List<String> flagSets, Integer invalidSets) { | ||
public FSValidatorResult(TreeSet<String> flagSets, Integer invalidSets) { | ||
_flagSets = flagSets; | ||
_invalidSets = invalidSets; | ||
} | ||
|
||
public List<String> getFlagSets() { | ||
return _flagSets; | ||
public HashSet<String> getFlagSets() { | ||
return new LinkedHashSet<>(_flagSets); | ||
} | ||
|
||
public int getInvalidSets() { | ||
return _invalidSets; | ||
} | ||
} | ||
} |
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