public class PhysicalVolumePath extends ArrayList<IPhysicalVolume> implements IPhysicalVolumePath
modCount
Constructor and Description |
---|
PhysicalVolumePath() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(IPhysicalVolumePath path)
Compare with another IPhysicalVolumePath.
|
boolean |
equalsPrefix(IPhysicalVolumePath path)
Compare the smallest prefix set of PhysicalVolumes together.
|
IPhysicalVolume |
getLeafVolume()
Get the bottom or last volume which is the leaf in this path.
|
IPhysicalVolume |
getTopVolume()
Get the top or first volume which is the world volume.
|
boolean |
isEmpty()
True if this IPhysicalVolumePath contains no PhysicalVolumes.
|
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
public IPhysicalVolume getTopVolume()
getTopVolume
in interface IPhysicalVolumePath
public IPhysicalVolume getLeafVolume()
getLeafVolume
in interface IPhysicalVolumePath
public boolean isEmpty()
isEmpty
in interface Collection<IPhysicalVolume>
isEmpty
in interface List<IPhysicalVolume>
isEmpty
in interface IPhysicalVolumePath
isEmpty
in class ArrayList<IPhysicalVolume>
public boolean equals(IPhysicalVolumePath path)
equals
in interface IPhysicalVolumePath
path
- public boolean equalsPrefix(IPhysicalVolumePath path)
ExpandedIdentifier id1 = ExpandedIdentifier("/1/2/3");
ExpandedIdentifier id2 = ExpandedIdentifier("/1/2/");
equalsPrefix
in interface IPhysicalVolumePath
path
- public String toString()
toString
in class AbstractCollection<IPhysicalVolume>
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.