Searched defs:obj (Results 1 - 25 of 70) sorted by relevance

123

/libcore/benchmarks/src/benchmarks/
H A DReferenceGetBenchmark.java30 private Object obj = "str"; field in class:ReferenceGetBenchmark
39 Reference soft = new SoftReference(obj);
46 Reference weak = new WeakReference(obj);
53 Reference weak = new WeakReference(obj);
54 obj = null;
/libcore/luni/src/main/java/java/lang/annotation/
H A DAnnotation.java72 * @param obj
75 * @return {@code true} if {@code obj} is equal to this annotation,
78 boolean equals(Object obj); argument
/libcore/luni/src/main/java/java/security/spec/
H A DECFieldFp.java71 * @param obj
76 public boolean equals(Object obj) { argument
78 if (this == obj) {
81 if (obj instanceof ECFieldFp) {
82 return (this.p.equals(((ECFieldFp)obj).p));
H A DECFieldF2m.java172 * @param obj
177 public boolean equals(Object obj) { argument
179 if (this == obj) {
182 if (obj instanceof ECFieldF2m) {
183 ECFieldF2m o = (ECFieldF2m)obj;
/libcore/luni/src/main/java/java/sql/
H A DRowId.java26 boolean equals(Object obj); argument
/libcore/luni/src/main/java/java/io/
H A DObjectOutput.java86 * Writes the specified object {@code obj} to the target stream.
88 * @param obj
93 public void writeObject(Object obj) throws IOException; argument
/libcore/luni/src/main/java/java/net/
H A DInterfaceAddress.java73 * @param obj the object to be compared.
74 * @return true if 'obj' is equal to this InterfaceAddress, false otherwise.
77 public boolean equals(Object obj) { argument
78 if (obj == this){
81 if (!(obj instanceof InterfaceAddress)) {
84 InterfaceAddress rhs = (InterfaceAddress) obj;
H A DProxy.java117 * Compares the specified {@code obj} to this {@code Proxy} instance and
122 * @param obj
129 public final boolean equals(Object obj) { argument
130 if (this == obj) {
133 if (!(obj instanceof Proxy)) {
136 Proxy another = (Proxy) obj;
/libcore/luni/src/main/java/java/security/
H A DCodeSigner.java62 * @param obj
69 public boolean equals(Object obj) { argument
70 if (obj == this) {
73 if (obj instanceof CodeSigner) {
74 CodeSigner that = (CodeSigner) obj;
H A DPermission.java30 public void checkGuard(Object obj) throws SecurityException { } argument
H A DTimestamp.java70 * @param obj
78 public boolean equals(Object obj) { argument
79 if (obj == this) {
82 if (obj instanceof Timestamp) {
83 Timestamp that = (Timestamp) obj;
/libcore/luni/src/main/java/java/text/
H A DRuleBasedCollator.java219 * @param obj
226 public boolean equals(Object obj) { argument
227 if (!(obj instanceof Collator)) {
230 return super.equals(obj);
/libcore/luni/src/main/java/javax/crypto/spec/
H A DRC2ParameterSpec.java127 * @param obj
133 public boolean equals(Object obj) { argument
134 if (obj == this) {
137 if (!(obj instanceof RC2ParameterSpec)) {
140 RC2ParameterSpec ps = (RC2ParameterSpec) obj;
H A DRC5ParameterSpec.java174 * @param obj
180 public boolean equals(Object obj) { argument
181 if (obj == this) {
184 if (!(obj instanceof RC5ParameterSpec)) {
187 RC5ParameterSpec ps = (RC5ParameterSpec) obj;
H A DSecretKeySpec.java161 * @param obj
167 public boolean equals(Object obj) { argument
168 if (obj == this) {
171 if (!(obj instanceof SecretKeySpec)) {
174 SecretKeySpec ks = (SecretKeySpec) obj;
/libcore/luni/src/main/java/javax/security/cert/
H A DCertificate.java49 * @param obj
51 * @return <code>true</code> if {@code obj} is the same as this
55 public boolean equals(Object obj) { argument
56 if (obj == this) {
59 if (!(obj instanceof Certificate)) {
62 Certificate object = (Certificate) obj;
/libcore/luni/src/test/java/libcore/java/text/
H A DOldFormatTest.java31 public StringBuffer format(Object obj, StringBuffer toAppendTo, argument
34 if (obj == null)
35 throw new NullPointerException("obj is null");
/libcore/support/src/test/java/tests/util/
H A DSerializationTester.java86 * @param obj the object to be checked
91 public static boolean assertCompabilitySame(Object obj, String fileName) argument
93 return obj == readObject(obj, fileName);
100 * @param obj the object to be checked
105 public static boolean assertCompabilityEquals(Object obj, String fileName) argument
107 return obj.equals(readObject(obj, fileName));
113 * @param obj the object to be serialized if no serialization file is found
118 public static Object readObject(Object obj, Strin argument
158 writeObject(Object obj, String fileName) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java126 @Override public boolean equals(Object obj) { argument
127 if (!(obj instanceof FieldContainer)) {
131 FieldContainer fc = (FieldContainer) obj;
/libcore/luni/src/main/java/java/lang/
H A DStackTraceElement.java85 * <li>{@code obj} must be a stack trace element,</li>
86 * <li>the method names of this stack trace element and of {@code obj} must
89 * stack trace element and of {@code obj} must be equal.</li>
92 * @param obj
99 public boolean equals(Object obj) { argument
100 if (!(obj instanceof StackTraceElement)) {
103 StackTraceElement castObj = (StackTraceElement) obj;
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicReferenceFieldUpdater.java85 * @param obj An object whose field to conditionally set
90 public abstract boolean compareAndSet(T obj, V expect, V update); argument
103 * @param obj An object whose field to conditionally set
108 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument
115 * @param obj An object whose field to set
118 public abstract void set(T obj, V newValue); argument
124 * @param obj An object whose field to set
128 public abstract void lazySet(T obj, V newValue); argument
134 * @param obj An object whose field to get
137 public abstract V get(T obj); argument
147 getAndSet(T obj, V newValue) argument
240 targetCheck(T obj) argument
247 updateCheck(T obj, V update) argument
255 compareAndSet(T obj, V expect, V update) argument
263 weakCompareAndSet(T obj, V expect, V update) argument
272 set(T obj, V newValue) argument
280 lazySet(T obj, V newValue) argument
289 get(T obj) argument
295 ensureProtectedAccess(T obj) argument
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java177 public boolean equals(Object obj) { argument
178 if (obj == this) {
181 if (!klazz.isInstance(obj)) {
185 if (Proxy.isProxyClass(obj.getClass())
186 && (handler = Proxy.getInvocationHandler(obj)) instanceof AnnotationFactory) {
213 Object otherValue = el.definingMethod.invoke(obj);
H A DAnnotationMember.java192 public boolean equals(Object obj) { argument
193 if (obj == this) {
198 if (obj instanceof AnnotationMember) {
199 AnnotationMember that = (AnnotationMember)obj;
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java133 public boolean equals(Object obj) { argument
134 if (!(obj instanceof FieldContainer)) {
138 FieldContainer fc = (FieldContainer) obj;
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestFramework.java53 Object obj,
50 assertInstanceOf( DOMTestCase test, String assertID, Object obj, Class cls) argument

Completed in 410 milliseconds

123