Tabnine Logo
Class.getSimpleName
Code IndexAdd Tabnine to your IDE (free)

How to use
getSimpleName
method
in
java.lang.Class

Best Java code snippets using java.lang.Class.getSimpleName (Showing top 20 results out of 134,550)

origin: ReactiveX/RxJava

/**
 * Appends the class name to a non-null value.
 * @param o the object
 * @return the string representation
 */
public static String valueAndClass(Object o) {
  if (o != null) {
    return o + " (class: " + o.getClass().getSimpleName() + ")";
  }
  return "null";
}
origin: square/retrofit

static RuntimeException methodError(Method method, @Nullable Throwable cause, String message,
  Object... args) {
 message = String.format(message, args);
 return new IllegalArgumentException(message
   + "\n    for method "
   + method.getDeclaringClass().getSimpleName()
   + "."
   + method.getName(), cause);
}
origin: ReactiveX/RxJava

  @Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}
origin: ReactiveX/RxJava

  @Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}
origin: ReactiveX/RxJava

  @Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}
origin: ReactiveX/RxJava

  @Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}
origin: ReactiveX/RxJava

  @Override
  public String toString() {
    return String.format("%s{%s}", getClass().getSimpleName(), super.toString());
  }
}
origin: ReactiveX/RxJava

  @Override
  public void subscribe(MaybeEmitter<Object> emitter) throws Exception {
    assertTrue(emitter.toString().contains(MaybeCreate.Emitter.class.getSimpleName()));
  }
}).test().assertEmpty();
origin: ReactiveX/RxJava

  @Override
  public void subscribe(CompletableEmitter emitter) throws Exception {
    assertTrue(emitter.toString().contains(CompletableCreate.Emitter.class.getSimpleName()));
  }
}).test().assertEmpty();
origin: ReactiveX/RxJava

  @Override
  public void subscribe(SingleEmitter<Object> emitter) throws Exception {
    assertTrue(emitter.toString().contains(SingleCreate.Emitter.class.getSimpleName()));
  }
}).test().assertEmpty();
origin: ReactiveX/RxJava

  @Override
  public void subscribe(FlowableEmitter<Object> emitter) throws Exception {
    assertTrue(emitter.toString().contains(entry.getValue().getSimpleName()));
    assertTrue(emitter.serialize().toString().contains(entry.getValue().getSimpleName()));
  }
}, entry.getKey()).test().assertEmpty();
origin: ReactiveX/RxJava

  @Override
  public void subscribe(ObservableEmitter<Object> emitter) throws Exception {
    assertTrue(emitter.toString().contains(ObservableCreate.CreateEmitter.class.getSimpleName()));
    assertTrue(emitter.serialize().toString().contains(ObservableCreate.CreateEmitter.class.getSimpleName()));
  }
}).test().assertEmpty();
origin: ReactiveX/RxJava

  @Test
  public void checkMaybeSchedulerDoc() throws Exception {
    checkSchedulerBadMethod(Maybe.class.getSimpleName());
  }
}
origin: ReactiveX/RxJava

@Test
public void checkMaybeBackpressure() throws Exception {
  checkSource(Maybe.class.getSimpleName(), false);
}
origin: ReactiveX/RxJava

@Test
public void checkSingleSchedulerDoc() throws Exception {
  checkSchedulerBadMethod(Single.class.getSimpleName());
}
origin: ReactiveX/RxJava

@Test
public void checkObservableBackpressure() throws Exception {
  checkSource(Observable.class.getSimpleName(), false);
}
origin: ReactiveX/RxJava

@Test
public void checkObservableSchedulerDoc() throws Exception {
  checkSchedulerBadMethod(Observable.class.getSimpleName());
}
origin: ReactiveX/RxJava

@Test
public void checkFlowableBackpressure() throws Exception {
  checkSource(Flowable.class.getSimpleName(), false);
}
origin: ReactiveX/RxJava

@Test
public void checkSingleScheduler() throws Exception {
  checkSource(Single.class.getSimpleName(), true);
}
origin: ReactiveX/RxJava

@Test
public void checkMaybeScheduler() throws Exception {
  checkSource(Maybe.class.getSimpleName(), true);
}
java.langClassgetSimpleName

Javadoc

Returns the simple name of the class represented by this Class as defined in the source code. If there is no name (that is, the class is anonymous) then an empty string is returned. If the receiver is an array then the name of the underlying type with square braces appended (for example "Integer[]") is returned.

Popular methods of Class

  • getName
    Returns the name of the class represented by this Class. For a description of the format which is us
  • getClassLoader
  • isAssignableFrom
    Determines if the class or interface represented by this Class object is either the same as, or is a
  • forName
    Returns the Class object associated with the class or interface with the given string name, using th
  • newInstance
    Returns a new instance of the class represented by this Class, created by invoking the default (that
  • getMethod
    Returns a Method object that reflects the specified public member method of the class or interface r
  • getResourceAsStream
    Finds a resource with a given name. The rules for searching resources associated with a given class
  • getSuperclass
    Returns the Class representing the superclass of the entity (class, interface, primitive type or voi
  • getConstructor
  • cast
    Casts an object to the class or interface represented by this Class object.
  • isInstance
  • getCanonicalName
    Returns the canonical name of the underlying class as defined by the Java Language Specification. Re
  • isInstance,
  • getCanonicalName,
  • getDeclaredField,
  • isArray,
  • getAnnotation,
  • getDeclaredFields,
  • getResource,
  • getDeclaredMethod,
  • getMethods

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JFileChooser (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now