MCPcopy Create free account
hub / github.com/PCGen/pcgen / SpellSchool

Class SpellSchool

code/src/java/pcgen/cdom/identifier/SpellSchool.java:24–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22import pcgen.cdom.base.Loadable;
23
24public class SpellSchool implements Loadable, Comparable<SpellSchool>
25{
26
27 private URI sourceURI;
28 private String name;
29
30 @Override
31 public String getDisplayName()
32 {
33 return name;
34 }
35
36 @Override
37 public String getKeyName()
38 {
39 return name;
40 }
41
42 @Override
43 public boolean isInternal()
44 {
45 return false;
46 }
47
48 @Override
49 public boolean isType(String type)
50 {
51 return false;
52 }
53
54 @Override
55 public void setName(String newName)
56 {
57 name = newName;
58 }
59
60 @Override
61 public String toString()
62 {
63 return name;
64 }
65
66 @Override
67 public boolean equals(Object other)
68 {
69 return other instanceof SpellSchool && name.equals(((SpellSchool) other).name);
70 }
71
72 @Override
73 public int hashCode()
74 {
75 return name.hashCode();
76 }
77
78 @Override
79 public int compareTo(SpellSchool other)
80 {
81 return name.compareTo(other.name);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected