Searched defs:clone (Results 51 - 75 of 107) sorted by relevance

12345

/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLParameters.java119 private static String[] clone(String[] s) { method in class:SSLParameters
120 return (s == null) ? null : s.clone();
131 return clone(cipherSuites);
140 this.cipherSuites = clone(cipherSuites);
151 return clone(protocols);
160 this.protocols = clone(protocols);
/libcore/ojluni/src/main/java/sun/net/
H A DProgressSource.java202 public Object clone() throws CloneNotSupportedException { method in class:ProgressSource
203 return super.clone();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DURICertStore.java472 @Override public Object clone() { method in class:URICertStore.URICertStoreParameters
474 return super.clone();
/libcore/ojluni/src/main/java/sun/security/x509/
H A DGeneralSubtrees.java120 public Object clone() { method in class:GeneralSubtrees
H A DNameConstraintsExtension.java352 (GeneralSubtrees)newExcluded.clone() : null;
369 (GeneralSubtrees)newPermitted.clone() : null;
380 excluded = (GeneralSubtrees)newExcluded.clone();
596 public Object clone() { method in class:NameConstraintsExtension
599 (NameConstraintsExtension) super.clone();
602 newNCE.permitted = (GeneralSubtrees) permitted.clone();
605 newNCE.excluded = (GeneralSubtrees) excluded.clone();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DIdentityHashMap2Test.java127 * java.util.IdentityHashMap#clone()
130 // Test for method java.lang.Object java.util.IdentityHashMap.clone()
131 IdentityHashMap hm2 = (IdentityHashMap) hm.clone();
146 AbstractMap map2 = (AbstractMap) map.clone();
183 public Object clone() throws CloneNotSupportedException { method in class:IdentityHashMap2Test.TestKey
184 return super.clone();
192 assertFalse(hm.containsKey(a.clone()));
H A DRefSortedMap.java376 public RefSortedMap<K, V> clone() { method in class:RefSortedMap
H A DHashMapTest.java195 * java.util.HashMap#clone()
198 // Test for method java.lang.Object java.util.HashMap.clone()
199 HashMap hm2 = (HashMap) hm.clone();
214 AbstractMap map2 = (AbstractMap) map.clone();
233 HashMap hm3 = (HashMap) hashmap.clone();
675 protected Object clone() throws CloneNotSupportedException { method in class:HashMapTest.MockClonable
/libcore/luni/src/main/java/javax/xml/datatype/
H A DXMLGregorianCalendar.java1036 public abstract Object clone(); method in class:XMLGregorianCalendar
/libcore/luni/src/test/java/libcore/java/text/
H A DOldAttributedStringTest.java242 public Object clone() { method in class:OldAttributedStringTest.testAttributedCharacterIterator
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSignatureSpiTest.java44 MySignatureSpi1 ssc1 = (MySignatureSpi1) ss1.clone();
52 ss2.clone();
152 public Object clone() throws CloneNotSupportedException { method in class:SignatureSpiTest.MySignatureSpi1
153 return super.clone();
186 public Object clone() throws CloneNotSupportedException { method in class:SignatureSpiTest.MySignatureSpi2
187 return super.clone();
/libcore/ojluni/src/main/java/java/security/cert/
H A DPKIXParameters.java488 return (Date) this.date.clone();
504 this.date = (Date) date.clone();
550 tmpList.add((PKIXCertPathChecker)checker.clone());
572 tmpList.add((PKIXCertPathChecker)ck.clone());
590 certPathCheckers.add((PKIXCertPathChecker)checker.clone());
632 return (CertSelector) certSelector.clone();
653 certSelector = (CertSelector) selector.clone();
664 public Object clone() { method in class:PKIXParameters
666 PKIXParameters copy = (PKIXParameters)super.clone();
668 // must clone thes
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DBitSet.java1090 * The clone of the bit set is another bit set that has exactly the
1093 * @return a clone of this bit set
1096 public Object clone() { method in class:BitSet
1101 BitSet result = (BitSet) super.clone();
1102 result.words = words.clone();
H A DEnumMap.java152 vals = m.vals.clone();
173 vals = em.vals.clone();
727 public EnumMap<K, V> clone() { method in class:EnumMap
730 result = (EnumMap<K, V>) super.clone();
734 result.vals = result.vals.clone();
H A DTimeZone.java564 // Special cases? These can clone an existing instance.
567 return (TimeZone) GMT.clone();
570 return (TimeZone) UTC.clone();
587 return (zone != null) ? zone : (TimeZone) GMT.clone();
698 return (TimeZone) getDefaultRef().clone();
703 * method doesn't create a clone.
744 defaultTimeZone = timeZone != null ? (TimeZone) timeZone.clone() : null;
766 * @return a clone of this <code>TimeZone</code>
768 public Object clone() method in class:TimeZone
771 TimeZone other = (TimeZone) super.clone();
[all...]
H A DTreeSet.java473 public Object clone() { method in class:TreeSet
474 TreeSet<E> clone;
476 clone = (TreeSet<E>) super.clone();
481 clone.m = new TreeMap<>(m);
482 return clone;
H A DArrayDeque.java840 public ArrayDeque<E> clone() { method in class:ArrayDeque
843 ArrayDeque<E> result = (ArrayDeque<E>) super.clone();
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListSet.java105 * safety, which entails some ugliness in clone().
171 public ConcurrentSkipListSet<E> clone() { method in class:ConcurrentSkipListSet
174 ConcurrentSkipListSet<E> clone =
175 (ConcurrentSkipListSet<E>) super.clone();
176 clone.setMap(new ConcurrentSkipListMap<E,Object>(m));
177 return clone;
509 // Support for resetting map in clone
/libcore/ojluni/src/main/java/java/util/jar/
H A DAttributes.java285 * public Object clone() { return new Attributes(this); }
291 public Object clone() { method in class:Attributes
H A DManifest.java310 * public Object clone() { return new Manifest(this); }
314 public Object clone() { method in class:Manifest
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipEntry.java629 public Object clone() { method in class:ZipEntry
631 ZipEntry e = (ZipEntry)super.clone();
632 e.extra = (extra == null) ? null : extra.clone();
/libcore/ojluni/src/main/java/java/security/
H A DSignature.java1080 * Returns a clone if the implementation is cloneable.
1082 * @return a clone if the implementation is cloneable.
1087 public Object clone() throws CloneNotSupportedException { method in class:Signature
1089 return super.clone();
1168 * Returns a clone if the delegate is cloneable.
1170 * @return a clone if the delegate is cloneable.
1175 public Object clone() throws CloneNotSupportedException { method in class:Signature.Delegate
1178 SignatureSpi sigSpiClone = (SignatureSpi)sigSpi.clone();
/libcore/ojluni/src/main/java/java/text/
H A DDecimalFormatSymbols.java583 public Object clone() { method in class:DecimalFormatSymbols
585 return (DecimalFormatSymbols)super.clone();
H A DMessageFormat.java1085 * @return a clone of this instance.
1087 public Object clone() { method in class:MessageFormat
1088 MessageFormat other = (MessageFormat) super.clone();
1090 // clone arrays. Can't do with utility because of bug in Cloneable
1091 other.formats = formats.clone(); // shallow clone
1094 other.formats[i] = (Format)formats[i].clone();
1096 // for primitives or immutables, shallow clone is enough
1097 other.offsets = offsets.clone();
1098 other.argumentNumbers = argumentNumbers.clone();
[all...]
H A DNumberFormat.java603 public Object clone() { method in class:NumberFormat
604 NumberFormat other = (NumberFormat) super.clone();

Completed in 364 milliseconds

12345