class OCompositeIndexDefinition extends ODocumentWrapperNoClass implements OIndexDefinition {

  public OType[] getTypes() {
    final List<OType> types = new LinkedList<OType>();
    for (final OIndexDefinition indexDefinition : indexDefinitions)
      Collections.addAll(types, indexDefinition.getTypes());

    return types.toArray(new OType[types.size()]);
  }

  public  OCompositeIndexDefinition();
  public  OCompositeIndexDefinition(final String iClassName);
  public  OCompositeIndexDefinition(final String iClassName, final List<? extends OIndexDefinition> iIndexes);

}