@Test public void testIsDisabled() { assertTrue( new PrioritizedComponent<String>( "", String.class, Float.NaN, 0 ).isDisabled() ); assertFalse( new PrioritizedComponent<String>( "", String.class, 0, 0 ).isDisabled() ); assertFalse( new PrioritizedComponent<String>( "", String.class, 1, 0 ).isDisabled() ); assertFalse( new PrioritizedComponent<String>( "", String.class, -1, 0 ).isDisabled() ); }
public boolean isDisabled() { return Float.isNaN( priority ); }
PrioritizedComponent implements Comparable<PrioritizedComponent<?>> { public boolean isDisabled() { return Float.isNaN( priority ); } }
PrioritizedComponent implements Comparable<PrioritizedComponent<?>> { public boolean isDisabled() { return Float.isNaN( priority ); } PrioritizedComponent( T component, Class<?> type, float priority, int index ); }
PrioritizedComponent implements Comparable<PrioritizedComponent<?>> { public boolean isDisabled() { return Float.isNaN( priority ); } PrioritizedComponent( T component, Class<?> type, float priority, int index ); T getComponent(); Class<?> getType(); float getPriority(); boolean isDisabled(); int compareTo( PrioritizedComponent<?> o ); @Override String toString(); }
PrioritizedComponent implements Comparable<PrioritizedComponent<?>> { public boolean isDisabled() { return Float.isNaN( priority ); } PrioritizedComponent( T component, Class<?> type, float priority, int index ); T getComponent(); Class<?> getType(); float getPriority(); boolean isDisabled(); int compareTo( PrioritizedComponent<?> o ); @Override String toString();  }