private static CircuitType getCircuitType ( String groupIn , Collection < String > neighborGroups ) { final boolean [ ] bits = new boolean [ CircuitType . BITS ] ; int i = CircuitType . BITS - 1 ; for ( final String neighborGroup : neighborGroups ) { bits [ i ] = groupIn . equals ( neighborGroup ) ; i -- ; } return CircuitType . from ( bits ) ; }
Get the circuit type from one group to another .