summaryrefslogtreecommitdiff
path: root/src/main/java/sevenUnits/utils/Nameable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/sevenUnits/utils/Nameable.java')
-rw-r--r--src/main/java/sevenUnits/utils/Nameable.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/sevenUnits/utils/Nameable.java b/src/main/java/sevenUnits/utils/Nameable.java
index e469d04..3959a64 100644
--- a/src/main/java/sevenUnits/utils/Nameable.java
+++ b/src/main/java/sevenUnits/utils/Nameable.java
@@ -35,14 +35,14 @@ public interface Nameable {
final NameSymbol ns = this.getNameSymbol();
return ns.getPrimaryName().or(ns::getSymbol).orElse("Unnamed");
}
-
+
/**
* @return a {@code NameSymbol} that contains this object's primary name,
* symbol and other names
* @since 2020-09-07
*/
NameSymbol getNameSymbol();
-
+
/**
* @return set of alternate names
* @since 2020-09-07
@@ -50,7 +50,7 @@ public interface Nameable {
default Set<String> getOtherNames() {
return this.getNameSymbol().getOtherNames();
}
-
+
/**
* @return preferred name of object
* @since 2020-09-07
@@ -58,7 +58,7 @@ public interface Nameable {
default Optional<String> getPrimaryName() {
return this.getNameSymbol().getPrimaryName();
}
-
+
/**
* @return a short name for the object - if there's a symbol, it's that,
* otherwise the symbol, otherwise "Unnamed"
@@ -68,7 +68,7 @@ public interface Nameable {
final NameSymbol ns = this.getNameSymbol();
return ns.getSymbol().or(ns::getPrimaryName).orElse("Unnamed");
}
-
+
/**
* @return short symbol representing object
* @since 2020-09-07