return new TermTree<>(termType);
}
- /**
- * Creates a new feature tree instance with an empty {@link #getRoot() root node}.
- *
- * @see #NewInstance(UUID)
- * @see #NewInstance(List)
- * @deprecated since 5.9. Use {@link #NewFeatureInstance()} instead
- */
- @Deprecated
- public static TermTree<Feature> NewInstance(){
- return NewFeatureInstance();
- }
-
public static TermTree<Feature> NewFeatureInstance(){
return new TermTree<>(TermType.Feature);
}
/**
- * @deprecated since 5.9, use {@link #NewFeatureInstance(UUID)} instead
- */
- @Deprecated
- public static TermTree<? extends Feature> NewInstance(UUID uuid){
- return NewFeatureInstance(uuid);
- }
- /**
* Creates a new feature tree instance with an empty {@link #getRoot() root node}
* and assigns to the new feature tree the given
* UUID (universally unique identifier).
return result;
}
- /**
- * @deprecated sinde 5.9 use {@link #NewFeatureInstance(List)} instead
- */
- @Deprecated
- public static TermTree<Feature> NewInstance(List<Feature> featureList){
- return NewFeatureInstance(featureList);
- }
/**
* Creates a new feature tree instance with a {@link #getRoot() root node}
* the children of which are the feature nodes build on the base of the
return result;
}
-
-
//******************** METHODS ***********************************************/
/**
return result;
}
-
public Set<T> independentTerms() {
Set<T> terms = root.getIndependentTermsRecursive();
return terms;
throw new RuntimeException(message);
}
}
-
-}
+}
\ No newline at end of file