Package com.yahoo.tensor
Class TensorType.IndexedBoundDimension
- java.lang.Object
-
- com.yahoo.tensor.TensorType.Dimension
-
- com.yahoo.tensor.TensorType.IndexedBoundDimension
-
- All Implemented Interfaces:
Comparable<TensorType.Dimension>
- Enclosing class:
- TensorType
public static class TensorType.IndexedBoundDimension extends TensorType.Dimension
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.tensor.TensorType.Dimension
TensorType.Dimension.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Optional<Long>
size()
Returns the size of this dimension if it is bound, empty otherwiseString
toString()
TensorType.Dimension.Type
type()
TensorType.IndexedBoundDimension
withName(String name)
Returns a copy of this with the name set to the given name
-
-
-
Method Detail
-
size
public Optional<Long> size()
Description copied from class:TensorType.Dimension
Returns the size of this dimension if it is bound, empty otherwise- Specified by:
size
in classTensorType.Dimension
-
type
public TensorType.Dimension.Type type()
- Specified by:
type
in classTensorType.Dimension
-
withName
public TensorType.IndexedBoundDimension withName(String name)
Description copied from class:TensorType.Dimension
Returns a copy of this with the name set to the given name- Specified by:
withName
in classTensorType.Dimension
-
toString
public String toString()
- Specified by:
toString
in classTensorType.Dimension
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTensorType.Dimension
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTensorType.Dimension
-
-