Hi there!
First, I'm sorry if my post doesn't belong here, I registered today so I'm new here. I'm also french, so english is not my native language - sorry if I'm not precise and if you don't understand my message.
I'm trying to create an enumeration called Origin with 3 parameters : a String (name), a list of Competence (which is a class that I created myself), and a list of Aspect (which I also created myself). I tried to create objects into this enumeration, but whatever I tried, I didn't manage to create one Origin. Here are some parts from my code, if you understood my explanation and have an element that might help me, thanks in advance!
public enum Competence { Admin("Admin"), Medic("Medic"), Worker("Worker"); private String name; Competence(String name) { this.name = name; } } public class Aspect { private String name; public Aspect(String name) { this.name = name; } } public enum Origin { Batra("Batra", "HERE IS THE Competence[]", "HERE IS THE Aspect[]"); private String name; private Competence[] competences; private Aspect[] aspects; Origin(String name, Competence[] competences, Aspect[] aspects) { this.name = name; this.competences = competences; this.aspects = aspects; } }
Once again, thank you in advance if you have an element that could help me progress in my personal project!