app/src/main/java/db/juhaku/juhakudb/core/schema/Schema.java
/**
     * Converts root Schema to set containing only ordered tables. This is convenient for
     * database creation. <br><br>If provided schema is not root empty set will be returned.
     *
     * @param schema root Schema of database.
     * @return Set with ordered tables of the root schema.
     *
     * @since 1.0.2
     */
Converts root Schema to set containing only ordered tables. This is convenient for
database creation. If provided schema is not root empty set will be returned.

@param schema root Schema of database.
@return Set with ordered tables of the root schema.


Converts root Schema to set containing only ordered tables . This is convenient for database creation . If provided schema is not root empty set will be returned . @param schema root Schema of database . @return Set with ordered tables of the root schema .
public static Set<Schema> toSet(Schema schema) {
        Set<Schema> tableSet = new TreeSet<>(schemaComparator);
        if (schema.getParent() == null) { 
            for (Entry<String, Schema> entry : schema.tables.entrySet()) {
                tableSet.add(entry.getValue());
            }
        }
        return tableSet;
    }
public static Set < Schema > toSet ( Schema schema ) { Set < Schema > tableSet = new TreeSet < > ( schemaComparator ) ; if ( schema . getParent ( ) == null ) { for ( Entry < String , Schema > entry : schema . tables . entrySet ( ) ) { tableSet . add ( entry . getValue ( ) ) ; } } return tableSet ; }
Converts root Schema to set containing only ordered tables.
Converts root Schema to set containing only ordered tables .
// only root schema is allowed