Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.aaa.bbb.ccc.dddd;
- public enum SomeName{
- SKILL1(1, "value1-1", "value1-2"),
- SKILL2(2, "value2-1", "value2-2"),
- SKILL3(3, "value3-1", "value3-2");
- private final int skillId;
- private final String value1;
- private final String value2;
- private SomeName(int id, String value1, String value2){
- this.skillId = id;
- this.value1 = value1;
- this.value2 = value2;
- }
- }
- package com.aaa.eee.fff;
- import com.aaa.bbb.ccc.dddd.SomeName;
- public class SomeClass {
- public SomeName function(SomeName param){
- //some work
- }
- }
Add Comment
Please, Sign In to add comment