예제 #1
0
  public UAProfile(
      @Nullable final List<String> aProfileUrls,
      @Nullable final Map<Integer, UAProfileDiff> aProfileDiffData) {
    final int nUrls = ContainerHelper.getSize(aProfileUrls);
    final int nDiffs = ContainerHelper.getSize(aProfileDiffData);
    if (nUrls == 0 && nDiffs == 0)
      throw new IllegalArgumentException("Neither profile nor diff data found!");

    if (nUrls > 1) s_aLogger.warn("Found more than one profile URL: " + aProfileUrls);
    m_sProfileUrl = ContainerHelper.getFirstElement(aProfileUrls);
    m_aProfileDiffData =
        ContainerHelper.isEmpty(aProfileDiffData)
            ? null
            : new TreeMap<Integer, UAProfileDiff>(aProfileDiffData);
  }
예제 #2
0
 @Nonnegative
 public int getIncomingRelationCount() {
   return ContainerHelper.getSize(m_aIncoming);
 }
예제 #3
0
 @Nonnegative
 public int getDiffCount() {
   return ContainerHelper.getSize(m_aProfileDiffData);
 }