-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#495 Add Support For Set Types In Config Beans
- Loading branch information
Karthick Sankarachary
committed
Sep 16, 2017
1 parent
e020acd
commit 002de45
Showing
4 changed files
with
206 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
package beanconfig; | ||
|
||
import com.typesafe.config.Config; | ||
import com.typesafe.config.ConfigMemorySize; | ||
import com.typesafe.config.ConfigObject; | ||
import com.typesafe.config.ConfigValue; | ||
|
||
import java.time.Duration; | ||
import java.util.Set; | ||
|
||
public class SetsConfig { | ||
|
||
Set<Integer> empty; | ||
Set<Integer> ofInt; | ||
Set<String> ofString; | ||
Set<Double> ofDouble; | ||
Set<Long> ofLong; | ||
Set<Object> ofNull; | ||
Set<Boolean> ofBoolean; | ||
Set<Object> ofObject; | ||
Set<Config> ofConfig; | ||
Set<ConfigObject> ofConfigObject; | ||
Set<ConfigValue> ofConfigValue; | ||
Set<Duration> ofDuration; | ||
Set<ConfigMemorySize> ofMemorySize; | ||
Set<StringsConfig> ofStringBean; | ||
|
||
public Set<Integer> getEmpty() { | ||
return empty; | ||
} | ||
|
||
public void setEmpty(Set<Integer> empty) { | ||
this.empty = empty; | ||
} | ||
|
||
public Set<Integer> getOfInt() { | ||
return ofInt; | ||
} | ||
|
||
public void setOfInt(Set<Integer> ofInt) { | ||
this.ofInt = ofInt; | ||
} | ||
|
||
public Set<String> getOfString() { | ||
return ofString; | ||
} | ||
|
||
public void setOfString(Set<String> ofString) { | ||
this.ofString = ofString; | ||
} | ||
|
||
public Set<Double> getOfDouble() { | ||
return ofDouble; | ||
} | ||
|
||
public void setOfDouble(Set<Double> ofDouble) { | ||
this.ofDouble = ofDouble; | ||
} | ||
|
||
public Set<Object> getOfNull() { | ||
return ofNull; | ||
} | ||
|
||
public void setOfNull(Set<Object> ofNull) { | ||
this.ofNull = ofNull; | ||
} | ||
|
||
public Set<Boolean> getOfBoolean() { | ||
return ofBoolean; | ||
} | ||
|
||
public void setOfBoolean(Set<Boolean> ofBoolean) { | ||
this.ofBoolean = ofBoolean; | ||
} | ||
|
||
public Set<Object> getOfObject() { | ||
return ofObject; | ||
} | ||
|
||
public void setOfObject(Set<Object> ofObject) { | ||
this.ofObject = ofObject; | ||
} | ||
|
||
public Set<Long> getOfLong() { | ||
return ofLong; | ||
} | ||
|
||
public void setOfLong(Set<Long> ofLong) { | ||
this.ofLong = ofLong; | ||
} | ||
|
||
public Set<Config> getOfConfig() { | ||
return ofConfig; | ||
} | ||
|
||
public void setOfConfig(Set<Config> ofConfig) { | ||
this.ofConfig = ofConfig; | ||
} | ||
|
||
public Set<ConfigObject> getOfConfigObject() { | ||
return ofConfigObject; | ||
} | ||
|
||
public void setOfConfigObject(Set<ConfigObject> ofConfigObject) { | ||
this.ofConfigObject = ofConfigObject; | ||
} | ||
|
||
public Set<ConfigValue> getOfConfigValue() { | ||
return ofConfigValue; | ||
} | ||
|
||
public void setOfConfigValue(Set<ConfigValue> ofConfigValue) { | ||
this.ofConfigValue = ofConfigValue; | ||
} | ||
|
||
public Set<Duration> getOfDuration() { | ||
return ofDuration; | ||
} | ||
|
||
public void setOfDuration(Set<Duration> ofDuration) { | ||
this.ofDuration = ofDuration; | ||
} | ||
|
||
public Set<ConfigMemorySize> getOfMemorySize() { | ||
return ofMemorySize; | ||
} | ||
|
||
public void setOfMemorySize(Set<ConfigMemorySize> ofMemorySize) { | ||
this.ofMemorySize = ofMemorySize; | ||
} | ||
|
||
public Set<StringsConfig> getOfStringBean() { | ||
return ofStringBean; | ||
} | ||
|
||
public void setOfStringBean(Set<StringsConfig> ofStringBean) { | ||
this.ofStringBean = ofStringBean; | ||
} | ||
} |
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