com.miginfocom.util.repetition
Interface Repetition

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultRepetition, GridLineRepetition

public interface Repetition
extends java.io.Serializable

An interface that defines if a specific index in a range is a 'hit' or not. Base for creating repetitions.


Method Summary
 boolean appliesTo(int n, int count)
          Returns if an index (n) should be applies to something with count size.
 

Method Detail

appliesTo

boolean appliesTo(int n,
                  int count)
Returns if an index (n) should be applies to something with count size.

Parameters:
n - The index. Must be less than count and >= 0.
count - The total number of entities in the range. Used for knowing when the "last" index is asked for.
Returns:
If n should be applied to something with count size.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.