public final class RealmSchema
extends java.lang.Object
RealmMigration| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(java.lang.String className)
Checks if a given class already exists in the schema. 
 | 
RealmObjectSchema | 
create(java.lang.String className)
Adds a new class to the Realm. 
 | 
RealmObjectSchema | 
get(java.lang.String className)
Returns the Realm schema for a given class. 
 | 
java.util.Set<RealmObjectSchema> | 
getAll()
Returns the  
RealmObjectSchema for all RealmObject classes that can be saved in this Realm. | 
void | 
remove(java.lang.String className)
Removes a class from the Realm. 
 | 
RealmObjectSchema | 
rename(java.lang.String oldClassName,
      java.lang.String newClassName)
Renames a class already in the Realm. 
 | 
public RealmObjectSchema get(java.lang.String className)
className - name of the classnull if the class doesn't exists.public java.util.Set<RealmObjectSchema> getAll()
RealmObjectSchema for all RealmObject classes that can be saved in this Realm.public RealmObjectSchema create(java.lang.String className)
className - name of the class.public void remove(java.lang.String className)
IllegalStateException. Remove those classes or fields first.className - name of the class to remove.public RealmObjectSchema rename(java.lang.String oldClassName, java.lang.String newClassName)
oldClassName - old class name.newClassName - new class name.public boolean contains(java.lang.String className)
className - class name to check.true if the class already exists. false otherwise.