diff options
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java b/vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java index ff2e6318b37..760a225efdf 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/evaluation/TypeContext.java @@ -8,7 +8,7 @@ import com.yahoo.tensor.TensorType; * * @author bratseth */ -public interface TypeContext<NAMETYPE extends TypeContext.Name> { +public interface TypeContext { /** * Returns the type of the tensor with this name. @@ -16,39 +16,6 @@ public interface TypeContext<NAMETYPE extends TypeContext.Name> { * @return returns the type of the tensor which will be returned by calling getTensor(name) * or null if getTensor will return null. */ - TensorType getType(NAMETYPE name); - - /** - * Returns the type of the tensor with this name by converting from a string name. - * - * @return returns the type of the tensor which will be returned by calling getTensor(name) - * or null if getTensor will return null. - */ TensorType getType(String name); - /** A name which is just a string. Names are value objects. */ - class Name { - - private final String name; - - public Name(String name) { - this.name = name; - } - - @Override - public String toString() { return name; } - - @Override - public int hashCode() { return name.hashCode(); } - - @Override - public boolean equals(Object other) { - if (other == this) return true; - if ( ! (other instanceof Name)) return false; - return ((Name)other).name.equals(this.name); - } - - } - - } |