Exemple #1
0
 Favorite(
     @Nonnull @Nonempty final String sID,
     @Nonnull @Nonempty final String sUserID,
     @Nonnull @Nonempty final String sApplicationID,
     @Nonnull @Nonempty final String sMenuItemID,
     @Nonnull @Nonempty final String sDisplayName,
     @Nullable final Map<String, String> aAdditionalParams) {
   m_sID = ValueEnforcer.notEmpty(sID, "ID");
   m_sUserID = ValueEnforcer.notEmpty(sUserID, "User ID");
   m_sMenuItemID = ValueEnforcer.notEmpty(sMenuItemID, "menu item ID");
   m_sApplicationID = ValueEnforcer.notEmpty(sApplicationID, "application ID");
   setDisplayName(sDisplayName);
   m_aAdditionalParams = CollectionHelper.newMap(aAdditionalParams);
 }
Exemple #2
0
 @Nonnull
 @ReturnsMutableCopy
 public Map<String, String> getAdditionalParams() {
   return CollectionHelper.newMap(m_aAdditionalParams);
 }
 @Nonnull
 @ReturnsMutableCopy
 public Map<KEYTYPE, VALUETYPE> getAllAttributes() {
   return CollectionHelper.newMap(m_aAttrs);
 }