Commit 629b4c57 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

added getters to BSTRotation class

parent c8a71722
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,10 @@ public class BST<keyType extends Comparable<keyType> > {
            return result.toString();
        }

        // getters
        Integer getRotKey() { return rotKey; }
        RotationType getRotType() { return rotType; }

        private final Integer rotKey;            // the key of the root of the rotation being performed
        private final RotationType rotType;      // the type of rotation being performed
    }