org.eigenbase.util.mapping
Class Mappings.FiniteAbstractMapping
java.lang.Object
org.eigenbase.util.mapping.Mappings.AbstractMapping
org.eigenbase.util.mapping.Mappings.FiniteAbstractMapping
- All Implemented Interfaces:
- Iterable<IntPair>, Mapping, Mappings.FunctionMapping, Mappings.SourceMapping, Mappings.TargetMapping
- Direct Known Subclasses:
- Mappings.PartialMapping
- Enclosing class:
- Mappings
public abstract static class Mappings.FiniteAbstractMapping
- extends Mappings.AbstractMapping
Mappings.FiniteAbstractMapping
public Mappings.FiniteAbstractMapping()
iterator
public Iterator<IntPair> iterator()
- Description copied from interface:
Mapping
- Returns an iterator over the elements in this mapping.
This method is optional; implementations may throw UnsupportedOperationException
.
toString
public String toString()
- Returns a string representation of this mapping.
For example, the mapping
source |
0 |
1 |
2 |
target |
-1 |
3 |
2 |
target |
0 |
1 |
2 |
3 |
source |
-1 |
-1 |
2 |
1 |
is represented by the string "[1:3, 2:2]".
This method relies upon the optional method iterator()
.
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object