@Nonnull @ReturnsMutableCopy public ICommonsList <IMicroElement> getAllForeignElements () { return new CommonsArrayList <> (m_aForeignElements); }
@Nonnull @ReturnsMutableCopy public ICommonsList <IMicroElement> getAllForeignElements () { return new CommonsArrayList <> (m_aForeignElements); }
@Nonnull public InternalErrorEmailSettings setReceiverAddress (@Nullable final IEmailAddress aReceiverAddress) { return setReceiverAddresses (aReceiverAddress == null ? null : new CommonsArrayList<> (aReceiverAddress)); }
/** * @return The optional variable constraints. Only relevant if this is a * variable path part. Never <code>null</code> but maybe empty. */ @Nonnull @ReturnsMutableCopy public ICommonsList <PathDescriptorVariableConstraint> getAllVariableConstraints () { return new CommonsArrayList<> (m_aVariableConstraints); }
/** * Utility method to remove a single resource from the schema cache. * * @param aKey * The resource to remove. May not be <code>null</code>. * @return {@link EChange}. */ @Nonnull public EChange removeFromCache (@Nonnull final IReadableResource aKey) { return removeFromCache (new CommonsArrayList <> (aKey)); }
@Nonnull public ICommonsList <ISMPProcess> getAllProcesses () { return new CommonsArrayList <> (m_aProcesses.values ()); }
@Nonnull @ReturnsMutableCopy public ICommonsList <ISMPEndpoint> getAllEndpoints () { return new CommonsArrayList <> (m_aEndpoints.values ()); }
public void addForeignElement (@Nonnull final IMicroElement aForeignElement) { ValueEnforcer.notNull (aForeignElement, "ForeignElement"); if (aForeignElement.hasParent ()) throw new IllegalArgumentException ("ForeignElement already has a parent!"); if (m_aForeignElements == null) m_aForeignElements = new CommonsArrayList <> (); m_aForeignElements.add (aForeignElement); }
public void addForeignElement (@Nonnull final IMicroElement aForeignElement) { ValueEnforcer.notNull (aForeignElement, "ForeignElement"); if (aForeignElement.hasParent ()) throw new IllegalArgumentException ("ForeignElement already has a parent!"); if (m_aForeignElements == null) m_aForeignElements = new CommonsArrayList <> (); m_aForeignElements.add (aForeignElement); }
public void addForeignElement (@Nonnull final IMicroElement aForeignElement) { ValueEnforcer.notNull (aForeignElement, "ForeignElement"); if (aForeignElement.hasParent ()) throw new IllegalArgumentException ("ForeignElement already has a parent!"); if (m_aForeignElements == null) m_aForeignElements = new CommonsArrayList <> (); m_aForeignElements.add (aForeignElement); }
public void addForeignElement (@Nonnull final IMicroElement aForeignElement) { ValueEnforcer.notNull (aForeignElement, "ForeignElement"); if (aForeignElement.hasParent ()) throw new IllegalArgumentException ("ForeignElement already has a parent!"); if (m_aForeignElements == null) m_aForeignElements = new CommonsArrayList <> (); m_aForeignElements.add (aForeignElement); }
public void addForeignElement (@Nonnull final IMicroElement aForeignElement) { ValueEnforcer.notNull (aForeignElement, "ForeignElement"); if (aForeignElement.hasParent ()) throw new IllegalArgumentException ("ForeignElement already has a parent!"); if (m_aForeignElements == null) m_aForeignElements = new CommonsArrayList <> (); m_aForeignElements.add (aForeignElement); }
/** * @param sUserID * The ID of the user. * @return A copy of all contained favorite as map from ID to object. Never * <code>null</code> but maybe empty. */ @Nonnull @ReturnsMutableCopy public ICommonsList <IFavorite> getAllFavoritesOfUser (@Nullable final String sUserID) { return m_aRWLock.readLocked ( () -> new CommonsArrayList <> (m_aMap.get (sUserID))); }
@Nonnull @ReturnsMutableCopy public ICommonsList <SystemMigrationResult> getAllMigrationResults (@Nullable final String sMigrationID) { return m_aRWLock.readLocked ( () -> new CommonsArrayList <> (m_aMap.get (sMigrationID))); }
@Nonnull @ReturnsMutableCopy public IMultiMapListBased <String, IFavorite> getAll () { final IMultiMapListBased <String, IFavorite> ret = new MultiHashMapArrayListBased <> (); for (final Map.Entry <String, ICommonsList <Favorite>> aEntry : m_aMap.entrySet ()) ret.put (aEntry.getKey (), new CommonsArrayList <> (aEntry.getValue ())); return ret; }
private EUBL21DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL21.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
/** * @return A non-<code>null</code> set with all meta elements to be included * in this request. */ @Nonnull @ReturnsMutableCopy public static ICommonsList <IMetaElement> getAllRegisteredMetaElementsForThisRequest () { final MetaElementList aSet = _getPerRequestSet (false); return aSet == null ? new CommonsArrayList <> () : aSet.getAllMetaElements (); }
public RecursiveChildNodeIterator (@Nonnull final Node aParent) { ValueEnforcer.notNull (aParent, "Parent"); final ICommonsList <Node> aNodes = new CommonsArrayList <> (); _recursiveFillListPrefix (aParent, aNodes); m_aIter = aNodes.iterator (); }
@Nonnull @ReturnsMutableCopy public static ICommonsList <Attr> getAllAttributesAsList (@Nullable final Element aSrcNode) { final ICommonsList <Attr> ret = new CommonsArrayList <> (); NamedNodeMapIterator.createAttributeIterator (aSrcNode).forEach (x -> ret.add ((Attr) x)); return ret; }
@Override protected void onAppendChild (@Nonnull final AbstractMicroNode aChildNode) { if (aChildNode.isDocument ()) throw new MicroException ("Cannot add document to documents"); if (m_aChildren == null) m_aChildren = new CommonsArrayList <> (); m_aChildren.add (aChildNode); _afterInsertAsChildOfThis (aChildNode); }