@ SuppressWarnings ( "unchecked" ) public < V > Key < V > getRoot ( ) { if ( this . getParent ( ) == null ) { return ( Key < V > ) this ; } else { return this . getParent ( ) . getRoot ( ) ; } }
Gets the root of a parent graph of keys . If a Key has no parent it is the root .