Uses of Class
org.aksw.commons.collections.PolaritySet
Packages that use PolaritySet
-
Uses of PolaritySet in org.aksw.commons.collections
Methods in org.aksw.commons.collections that return PolaritySetModifier and TypeMethodDescriptionprotected PolaritySet<T> PolaritySet.clone()static <T> PolaritySet<T> PolaritySet.create(boolean isPositive, T... values) static <T> PolaritySet<T> PolaritySet.createDifferenceView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the difference case: positive - negative {1, 2, 3} difference {not {3}}: -> { 3 } (intersection) case: negative - positive {not {3} } difference {1, 2, 3}: case: negative - negative Simply take the intersectionstatic <T> PolaritySet<T> PolaritySet.createIntersectionView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the intersection case: positive - negative {1, 2, 3} intersect {not {2}}: -> {1, 3} (positive.removeAll(negative)) case: negative - positive Same as above case: negative - negative Simply take the unionstatic <T> PolaritySet<T> PolaritySet.createUnionView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the union case: positive - negative {1, 2, 3} intersect {not {1, 4}}: -> {4} (negative.removeAll(positive)) case: negative - positive Same as above case: negative - negative Simply take the intersectionPolaritySet.difference(PolaritySet<T> that) Immutable union; returns a viewPolaritySet.intersect(PolaritySet<T> that) Immutable union; returns a viewPolaritySet.negate()Immutable negate; returns a viewPolaritySet.stateIntersect(PolaritySet<T> that) Mutating intersectionPolaritySet.stateNegate()Mutates this by flipping the polarityPolaritySet.stateUnion(PolaritySet<T> that) Mutating unionPolaritySet.union(PolaritySet<T> that) Immutable union; returns a viewMethods in org.aksw.commons.collections with parameters of type PolaritySetModifier and TypeMethodDescriptionstatic <T> PolaritySet<T> PolaritySet.createDifferenceView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the difference case: positive - negative {1, 2, 3} difference {not {3}}: -> { 3 } (intersection) case: negative - positive {not {3} } difference {1, 2, 3}: case: negative - negative Simply take the intersectionstatic <T> PolaritySet<T> PolaritySet.createIntersectionView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the intersection case: positive - negative {1, 2, 3} intersect {not {2}}: -> {1, 3} (positive.removeAll(negative)) case: negative - positive Same as above case: negative - negative Simply take the unionstatic <T> PolaritySet<T> PolaritySet.createUnionView(PolaritySet<T> self, PolaritySet<T> that) case: positive - positive Simply take the union case: positive - negative {1, 2, 3} intersect {not {1, 4}}: -> {4} (negative.removeAll(positive)) case: negative - positive Same as above case: negative - negative Simply take the intersectionPolaritySet.difference(PolaritySet<T> that) Immutable union; returns a viewPolaritySet.intersect(PolaritySet<T> that) Immutable union; returns a viewPolaritySet.stateIntersect(PolaritySet<T> that) Mutating intersectionPolaritySet.stateUnion(PolaritySet<T> that) Mutating unionPolaritySet.union(PolaritySet<T> that) Immutable union; returns a view