public class TypedBuffer extends java.lang.Object
Bufferto validate that elements added are of a specific type.
The validation of additions is performed via an instanceof test against
Class. If an object cannot be added to the
collection, an IllegalArgumentException is thrown.
|Modifier and Type||Method and Description|
Factory method to create a typed list.
If there are any elements already in the buffer being decorated, they are validated.
buffer- the buffer to decorate, must not be null
type- the type to allow into the buffer, must not be null
java.lang.IllegalArgumentException- if buffer or type is null
java.lang.IllegalArgumentException- if the buffer contains invalid elements
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"