sds.more
Class Miscellaneous

java.lang.Object
  extended by sds.more.Miscellaneous

public final class Miscellaneous
extends java.lang.Object

Unclassifiable helpful operations either used by SDS or for the developer

Author:
ncottin

Constructor Summary
Miscellaneous()
           
 
Method Summary
static Reference[] toArray(java.util.Collection<Reference> references)
           Transforms a collection of references to an array of references, discarding all null references
static java.util.Collection<Reference> toCollection(Reference... references)
           Transforms a list of references to a collection of references, discarding null references
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Miscellaneous

public Miscellaneous()
Method Detail

toArray

public static Reference[] toArray(java.util.Collection<Reference> references)

Transforms a collection of references to an array of references, discarding all null references

Parameters:
references - A possibly null collection of references
Returns:
Null if the given collection is null or a possibly empty collection of references holding all non-null references taken from the provided collection

toCollection

public static java.util.Collection<Reference> toCollection(Reference... references)

Transforms a list of references to a collection of references, discarding null references

Parameters:
references - A possibly null list of references
Returns:
Null if the given list is null or a possibly empty collection of references holding all non-null references