Home | History | Annotate | Download | only in 089-dex-define-object
      1 /*
      2  * Copyright (C) 2007 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package java.lang;
     18 
     19 public class Object {
     20     public Object() {
     21         // This space intentionally left blank.
     22     }
     23 
     24     public boolean equals(Object o) {
     25         return true;
     26     }
     27 
     28     protected void finalize() {
     29         // This space intentionally left blank.
     30     }
     31 
     32     public final native Class<? extends Object> getClass();
     33     public native int hashCode();
     34     public final native void notify();
     35     public final native void notifyAll();
     36 
     37     public String toString() {
     38         return "blort";
     39     }
     40 
     41     public final void wait() {
     42         wait(0, 0);
     43     }
     44 
     45     public final void wait(long time) {
     46         wait(time, 0);
     47     }
     48 
     49     public final native void wait(long time, int frac);
     50 }
     51