@Override
 public int getListSize() {
   if (vXAuditMaps != null) {
     return vXAuditMaps.size();
   }
   return 0;
 }
Exemplo 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;
  }
Exemplo 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()]);
 }