Code example for LinkedList

Methods: add

0
 
        public StubX509Certificate addSubjectAlternativeName(int type, String name) {
            if (subjectAlternativeNames == null) {
                subjectAlternativeNames = new ArrayList<List<?>>();
            } 
            LinkedList<Object> entry = new LinkedList<Object>();
            entry.add(type);
            entry.add(name);
            subjectAlternativeNames.add(entry);
            return this;
        } 
 
        @Override public Collection<List<?>> getSubjectAlternativeNames() {
            return subjectAlternativeNames;
        } 
 
        @Override public X500Principal getSubjectX500Principal() {
            return subjectX500Principal;
        } 
 
        @Override public void checkValidity() {