diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2018-01-05 16:11:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 16:11:10 +0100 |
commit | 235f2ddd5adf5c99cf53d6e6321dbe5e2fd842c2 (patch) | |
tree | 88b9e98cba35ea13ade0caaf8db978848b465ee5 /core/shared/src/main/scala/interface.scala | |
parent | 0ace51eb792b9e036fc2399f6d318f3e5655bbd4 (diff) | |
parent | 6ce9fd4ce13ca5fae1c4bc8d2ba3af72bbd4dbf5 (diff) | |
download | magnolia-235f2ddd5adf5c99cf53d6e6321dbe5e2fd842c2.tar.gz magnolia-235f2ddd5adf5c99cf53d6e6321dbe5e2fd842c2.tar.bz2 magnolia-235f2ddd5adf5c99cf53d6e6321dbe5e2fd842c2.zip |
Merge pull request #71 from sirthias/md/typename
Switch `Subtype#label` member to new `TypeName`
Diffstat (limited to 'core/shared/src/main/scala/interface.scala')
-rw-r--r-- | core/shared/src/main/scala/interface.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/shared/src/main/scala/interface.scala b/core/shared/src/main/scala/interface.scala index f0f104c..05803f0 100644 --- a/core/shared/src/main/scala/interface.scala +++ b/core/shared/src/main/scala/interface.scala @@ -12,10 +12,10 @@ trait Subtype[Typeclass[_], Type] { /** the type of subtype */ type SType <: Type - /** the name of the subtype + /** the [[TypeName]] of the subtype * - * This is the fully-qualified name of the type of subclass. */ - def label: String + * This is the full name information for the type of subclass. */ + def typeName: TypeName /** the typeclass instance associated with this subtype * @@ -186,6 +186,6 @@ final class SealedTrait[Typeclass[_], Type](val typeName: TypeName, /** * Provides the different parts of a type's class name. */ -final case class TypeName(ownerName: String, short: String) { - def full: String = s"$ownerName.$short" +final case class TypeName(owner: String, short: String) { + def full: String = s"$owner.$short" }
\ No newline at end of file |