@Test public void testAll() { int count = 0; final Class<CodeList> base = CodeList.class; final ClassScanner scanner = new ClassScanner(); while (scanner.hasNext()) { final Class<?> candidate = scanner.next(); if (!base.equals(candidate) && base.isAssignableFrom(candidate)) { final String name = candidate.getName(); if (name.equals("org.opengis.util.SimpleEnumerationType")) { continue; } if (name.equals("org.opengis.filter.sort.SortOrder")) { continue; } assertValid(candidate.asSubclass(CodeList.class)); count++; } } LOGGER.fine("Found " + count + " code lists."); if (count == 0) { LOGGER.warning("No CodeList found."); } }
@Override public final boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { return ordinal == ((CodeList) object).ordinal; } return false; }
CodeList implements Comparable<E>, Serializable { @Override public final boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { return ordinal == ((CodeList) object).ordinal; } return false; } }
CodeList implements Comparable<E>, Serializable { @Override public final boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { return ordinal == ((CodeList) object).ordinal; } return false; } @SuppressWarnings("unchecked") protected  CodeList(String name, final Collection<E> values); }
CodeList implements Comparable<E>, Serializable { @Override public final boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { return ordinal == ((CodeList) object).ordinal; } return false; } @SuppressWarnings("unchecked") protected  CodeList(String name, final Collection<E> values); static T valueOf(final Class<T> codeType, String name); final int ordinal(); String identifier(); final String name(); boolean matches(String name); abstract E[] family(); final int compareTo(final E other); @Override final boolean equals(final Object object); @Override String toString(); }
CodeList implements Comparable<E>, Serializable { @Override public final boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { return ordinal == ((CodeList) object).ordinal; } return false; } @SuppressWarnings("unchecked") protected  CodeList(String name, final Collection<E> values); static T valueOf(final Class<T> codeType, String name); final int ordinal(); String identifier(); final String name(); boolean matches(String name); abstract E[] family(); final int compareTo(final E other); @Override final boolean equals(final Object object); @Override String toString();  }