code: 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);
      }
docs: Get the circuit type from one group to another.
  
  @param groupIn The group in.
  @param neighborGroups The neighbor groups.
  @return The tile circuit.