-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
breaking changeThis is going to break stuffThis is going to break stuff
Milestone
Description
I noticed NOVA always uses string identifiers. IMO NOVA should use typed identifiers:
Identifier
interfaceTheEDIT: I derped, mixed something up .-.I
at the beginning is necessary to avoid conflicts with a bunch of things (e.g. Kotlin). Could also beNOVAIdentifier
- it just can't beIdentifier
.- Single method:
String asString();
- Implementations should override
equals
,hashCode
andtoString
.
UUIDIdentifier
class- Used when the identifier is an
UUID
. - Additional methods:
UUID asUUID();
- Used when the identifier is an
ClassIdentifier
class- Used when the identifier is a
Class
. - Additional methods:
Class<?> asClass();
- Used when the identifier is a
StringIdentifier
class- Used when the identifier is an actual, proper
String
.
- Used when the identifier is an actual, proper
Will make a PR once we figure out if this is a good idea.
calclavia
Metadata
Metadata
Labels
breaking changeThis is going to break stuffThis is going to break stuff