-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squash me Signed-off-by: Ljupcho Palashevski <lpalashevski@gmail.com>
- Loading branch information
1 parent
358543d
commit 7b9ce1c
Showing
6 changed files
with
194 additions
and
64 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
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
35 changes: 35 additions & 0 deletions
35
...ng/src/main/java/org/odpi/openmetadata/serverchassis/springboot/constants/Extensions.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,35 @@ | ||
package org.odpi.openmetadata.serverchassis.springboot.constants; | ||
|
||
import java.io.Serializable; | ||
import java.util.stream.Stream; | ||
|
||
/** | ||
* Created by YM21WO on egeria | ||
* on 17/08/2023 at 11:19 | ||
*/ | ||
public enum Extensions implements Serializable { | ||
|
||
YAML(".yaml"), | ||
YML(".yml"), | ||
JSON(".json"); | ||
|
||
|
||
private final String value; | ||
|
||
Extensions(String value) { | ||
this.value = value; | ||
} | ||
|
||
public static String stream() { | ||
StringBuffer stringBuffer = new StringBuffer(); | ||
Stream.of(Extensions.values()) | ||
.forEach(e -> stringBuffer.append(e.getValue()).append(", ")); | ||
|
||
return stringBuffer.toString(); | ||
} | ||
|
||
private String getValue() { | ||
return value; | ||
} | ||
|
||
} |