Skip to content
Snippets Groups Projects
Commit 7364cb1d authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Merge branch '4349' into 'master'

4349

Closes af3#4349

See merge request !221
parents 8ea4980a 8909ddf8
No related branches found
No related tags found
1 merge request!2214349
......@@ -8,7 +8,7 @@ LogMessage.java 14204ed9d51b356f50be52362247cfbbe0cbd5c7 GREEN
ModelElementTransformationContext.java 5a41bd3a75ce434c3174d50d2fdfab28b66f09f2 GREEN
ModelStorageError.java 2aef480044047e960e64811111a7f27310011cc2 GREEN
Prototype.java f4b13f86b7511edacc138053ffb80cecbac70868 GREEN
PrototypeCategory.java ca500b4816ed42b9536488669aeab89561d2f08c GREEN
PrototypeCategory.java 6aa849290948b1fd9608ad06d7cca2ec6ff76805 GREEN
TransformationProviderChain.java 67ec6d0b4c23d295323572649606d79f3b897437 GREEN
TutorialAtomicStep.java 09c0d6597d542b431b5bbdc790ee9e533d9f77fb GREEN
TutorialCompositeStep.java cc61c2e86eff310762acac4d023fd709507355c8 GREEN
......
......@@ -16,7 +16,9 @@
package org.fortiss.tooling.kernel.extension.data;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Container object for prototypes of a certain category.
......@@ -37,8 +39,8 @@ public class PrototypeCategory {
/** Stores the prototypes affiliated with this category. */
private List<Prototype> children = new ArrayList<Prototype>();
/** Stores the sub-categories of this category. */
private List<PrototypeCategory> subCategories = new ArrayList<PrototypeCategory>();
/** Stores the unique sub-categories of this category. */
private Set<PrototypeCategory> subCategories = new HashSet<PrototypeCategory>();
/** Constructor. */
public PrototypeCategory(String category) {
......@@ -102,4 +104,10 @@ public class PrototypeCategory {
public String toString() {
return "Prototype category: " + categoryName;
}
/** {@inheritDoc} */
@Override
public int hashCode() {
return getName().hashCode();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment