Searched refs:clone (Results 51 - 75 of 312) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/javax/crypto/
H A DMacSpi.java139 * Returns a clone if the implementation is cloneable.
141 * @return a clone if the implementation is cloneable.
146 public Object clone() throws CloneNotSupportedException { method in class:MacSpi
148 return super.clone();
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSNIServerName.java88 this.encoded = encoded.clone();
107 return encoded.clone();
/libcore/ojluni/src/main/java/sun/security/x509/
H A DKeyIdentifier.java51 this.octetString = octetString.clone();
107 return octetString.clone();
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/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertPath.java81 return encoding.clone();
94 return this.encoding.clone();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DForwardState.java226 * Note that this is a SMART clone. Not all fields are fully copied,
231 @SuppressWarnings("unchecked") // Safe casts assuming clone() works correctly
232 public Object clone() { method in class:ForwardState
234 ForwardState clonedState = (ForwardState) super.clone();
236 /* clone checkers, if cloneable */
238 forwardCheckers.clone();
244 li.set((PKIXCertPathChecker)checker.clone());
254 = (HashSet<GeneralNameInterface>)subjectNamesTraversed.clone();
/libcore/ojluni/src/main/java/java/util/
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 DHashSet.java253 public Object clone() { method in class:HashSet
255 HashSet<E> newSet = (HashSet<E>) super.clone();
256 newSet.map = (HashMap<E, Object>) map.clone();
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;
/libcore/luni/src/test/java/libcore/java/text/
H A DOldDecimalFormatSymbolsTest.java86 DecimalFormatSymbols dfs2 = (DecimalFormatSymbols) dfs1.clone();
97 DecimalFormatSymbols fsc = (DecimalFormatSymbols) fs.clone();
102 DecimalFormatSymbols fsc2 = (DecimalFormatSymbols) (fs.clone());
104 assertTrue("Object's clone isn't equal!", fs.equals(fsc2));
107 // change the content of the clone and make sure it's not equal
111 assertTrue("Object's changed clone should not be equal!", !fs.equals(fsc2));
/libcore/benchmarks/src/benchmarks/regression/
H A DDateToStringBenchmark.java53 ((SimpleDateFormat) format.clone()).format(date);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DCertPathTrustManagerParametersTest.java75 public Object clone() { method in class:MyCertPathParameters
/libcore/luni/src/test/java/libcore/java/util/
H A DOldLinkedHashMapTest.java49 LinkedHashMap mapClone = (LinkedHashMap) map.clone();
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMacSpiTest.java179 mSpi.clone();
185 mSpi1.clone();
212 mSpi2.clone();
228 public Object clone() throws CloneNotSupportedException { method in class:MyMacSpi1
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DGCMParameterSpec.java147 return iv.clone();
H A DSecretKeySpec.java98 this.key = key.clone();
184 return this.key.clone();
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldAttributesTest.java69 Attributes b = (Attributes) a.clone();
72 b = (Attributes) a.clone();
/libcore/ojluni/src/main/java/java/security/spec/
H A DECFieldF2m.java136 this.ks = ks.clone();
206 return ks.clone();
H A DEllipticCurve.java118 this.seed = seed.clone();
160 else return seed.clone();
/libcore/ojluni/src/main/java/java/text/
H A DBreakIterator.java244 public Object clone() method in class:BreakIterator
247 return super.clone();
H A DFormat.java254 * @return a clone of this instance.
256 public Object clone() { method in class:Format
258 return super.clone();
H A DStringCharacterIterator.java269 public Object clone() method in class:StringCharacterIterator
273 = (StringCharacterIterator) super.clone();
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DRuleBasedCollatorTest.java52 RuleBasedCollator clone = (RuleBasedCollator) coll.clone();
53 assertNotSame(coll, clone);
54 assertEquals(coll.getRules(), clone.getRules());
55 assertEquals(coll.getDecomposition(), clone.getDecomposition());
56 assertEquals(coll.getStrength(), clone.getStrength());
/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();

Completed in 580 milliseconds

1234567891011>>