org.sonar.plugins.core.timemachine.tracking
Class HashedSequence<S extends Sequence>

java.lang.Object
  extended by org.sonar.plugins.core.timemachine.tracking.HashedSequence<S>
All Implemented Interfaces:
Sequence

public final class HashedSequence<S extends Sequence>
extends Object
implements Sequence

Wraps a Sequence to assign hash codes to elements.


Method Summary
 int length()
           
static
<S extends Sequence>
HashedSequence<S>
wrap(S base, SequenceComparator<S> cmp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrap

public static <S extends Sequence> HashedSequence<S> wrap(S base,
                                                          SequenceComparator<S> cmp)

length

public int length()
Specified by:
length in interface Sequence
Returns:
total number of items in the sequence


Copyright © 2009-2012 SonarSource. All Rights Reserved.