Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static MintKeyObject /*Object*/ producer(int objectType)
- {
- switch (objectType)
- {
- case 0:
- // return new MintEvent();
- mint.api.domain.schedule.MintCourse r = new mint.api.domain.schedule.MintCourse();
- return r;
- case 1:
- // return new MintAssignment();
- MintContinuity c = new MintContinuity();
- c.setDescription("foobar");
- return c;
- case 2:
- // return new MintEvent() {{ setKey(1234L); }};
- r = new mint.api.domain.schedule.MintCourse();
- r.setKey(1234L);
- r.setScheduleId("bla");
- return r;
- default:
- throw new IllegalArgumentException("unsupported object type");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement