Ejemplo n.º 1
0
 @Override
 public int getListSize() {
   if (vXAuditMaps != null) {
     return vXAuditMaps.size();
   }
   return 0;
 }
Ejemplo n.º 2
0
  /**
   * Finds the first extension of a specified type.
   *
   * @param clazz The type.
   * @return The extension, or null if none found.
   */
  @SuppressWarnings({"unchecked"})
  public <E> E findExtensionOfType(Class<E> clazz) {
    List<E> candidates = findExtensionsOfType(clazz);

    if (candidates.size() > 0) {
      return candidates.get(0);
    }

    return null;
  }
Ejemplo n.º 3
0
 public void removeAsset(Integer id) {
   List ids = new ArrayList(Arrays.asList(assetIds));
   ids.remove(id);
   assetIds = (Integer[]) ids.toArray(new Integer[ids.size()]);
 }