Class CollectionSliceReference
java.lang.Object
org.eclipse.epsilon.eol.dap.variables.IdentifiableReference<Collection<Object>>
org.eclipse.epsilon.eol.dap.variables.CollectionSliceReference
- All Implemented Interfaces:
IVariableReference
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.dap.variables.IdentifiableReference
id, target
-
Constructor Summary
ConstructorDescriptionCollectionSliceReference
(String name, Collection<Object> t, int from, int to) Creates a reference to a slice of a collection. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
getValue()
getVariables
(SuspendedState state) int
hashCode()
Methods inherited from class org.eclipse.epsilon.eol.dap.variables.IdentifiableReference
getId, getTarget, getTypeName, setId, setTarget
-
Constructor Details
-
CollectionSliceReference
Creates a reference to a slice of a collection. The slice will include all the elements in the semi-closed range[from, to)
.- Parameters:
name
- Name of the collection (the name of the slice will be automatically computed).t
- Target collection.from
- Starting 0-based index, included.to
- Final 0-based index, excluded.
-
-
Method Details
-
getName
-
getValue
- Specified by:
getValue
in interfaceIVariableReference
- Overrides:
getValue
in classIdentifiableReference<Collection<Object>>
-
getVariables
- Specified by:
getVariables
in interfaceIVariableReference
- Overrides:
getVariables
in classIdentifiableReference<Collection<Object>>
-
getInternalList
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIdentifiableReference<Collection<Object>>
-
equals
- Overrides:
equals
in classIdentifiableReference<Collection<Object>>
-