public abstract class Descriptor extends Object implements Serializable, Iterable<TargetDescriptor>
| Modifier and Type | Method and Description |
|---|---|
abstract TargetDescriptor |
getTargetByCRC(int crc)
Returns the
TargetDescriptor that matches the specified
CRC-32 checksum. |
abstract int |
getTargetCount()
Counts the total number of target descriptors in/under this descriptor.
|
abstract boolean |
isGroup()
Checks if this descriptor denotes a group of descriptor of descriptorss.
|
abstract Iterator |
iterateTargets()
Deprecated.
use the
Iterable.iterator() method or even better the for each loop. |
public abstract boolean isGroup()
true if this descriptor denotes a group,
false otherwise.@Deprecated public abstract Iterator iterateTargets()
Iterable.iterator() method or even better the for each loop.The returned Iterator will not support
Iterator.remove(). The iterator will only return
TargetDescriptor instances, no instances of other classes and
no null values.
Also, this iterator is guaranteed to return getTargetCount()
instances of class TargetDescriptor.
null.public abstract int getTargetCount()
public abstract TargetDescriptor getTargetByCRC(int crc)
TargetDescriptor that matches the specified
CRC-32 checksum.crc - the CRC-32 checksum.TargetDescriptor that matches the specified checksum, or
null, if none could be found in this descriptor.See http://www.xins.org/.