Java Reference
In-Depth Information
public boolean removeAll(Collection<?> collectionToRemove) (Optional)
Removes all the calling object's elements that are also contained in collectionToRemove .
Returns true if the calling object was changed; otherwise returns false .
Throws:
UnsupportedOperationException if this method is not supported by the class that
implements this interface.
ClassCastException if the types of one or more elements in collectionToRemove are
incompatible with the calling collection (optional).
NullPointerException if collectionToRemove contains one or more null elements and
the calling object does not support null elements (optional).
NullPointerException if collectionToRemove is null .
public boolean retainAll(Collection<?> saveElements) (Optional)
Retains only the elements in the calling object that are also contained in the collection
saveElements . In other words, removes from the calling object all of its elements that are not
contained in the collection saveElements . Returns true if the calling object was changed;
otherwise returns false.
Throws:
ClassCastException if the types of one or more elements in saveElements are
incompatible with the calling object (optional).
NullPointerException if saveElements contains one or more null elements and the
calling object does not support null elements (optional).
NullPointerException if saveElements is null.
Color
Package: java.awt
Ancestor classes:
Object
|
+--Color
CONSTRUCTORS
public Color( float r, float g, float b)
Constructor that creates a new Color with the specifi ed RGB values. The parameters r , g , and b
must each be in the range 0.0 to 1.0 (inclusive).
public Color( int r, int g, int b)
Constructor that creates a new Color with the specifi ed RGB values. The parameters r , g , and b
must each be in the range 0 to 255 (inclusive).
 
Search WWH ::




Custom Search