-
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.
change the base design of configuration data struct
- Loading branch information
shandiankulishe
committed
Apr 16, 2022
1 parent
6eeb0fc
commit df40394
Showing
9 changed files
with
259 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package glous.kleebot.config; | ||
|
||
public class ConfigNode { | ||
public ConfigNode(String key, Object value, String comment) { | ||
this.key = key; | ||
this.value = value; | ||
this.comment = comment; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public Object getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(Object value) { | ||
this.value = value; | ||
} | ||
|
||
public String getComment() { | ||
if (comment==null){ | ||
return ""; | ||
} | ||
return comment; | ||
} | ||
|
||
public void setComment(String comment) { | ||
this.comment = comment; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Key : %s Value : %s(Type: %s) Comment: %s".formatted(key,value,value.getClass().getName(),comment); | ||
} | ||
|
||
private String key; | ||
private Object value; | ||
private String comment; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
df40394
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kleebot – ./
kleebot-youfantan.vercel.app
kleebot-git-master-youfantan.vercel.app