/** * @param v a value number * @return true if the variable with the given value number has no uses */ public boolean isUnused(int v) { final MutableIntSet usesSet = uses[v]; assert usesSet == null || !usesSet.isEmpty(); return usesSet == null; } }
/** * @param v a value number * @return true if the variable with the given value number has no uses */ public boolean isUnused(int v) { final MutableIntSet usesSet = uses[v]; assert usesSet == null || !usesSet.isEmpty(); return usesSet == null; } }
@Override public boolean isEmpty() { return impl.isEmpty(); }
@Override public boolean isEmpty() { return impl.isEmpty(); }
@Override public boolean isEmpty() { return impl.isEmpty(); }
/** */ @Override public boolean isEmpty() { if (primaryImpl.isEmpty() != secondaryImpl.isEmpty()) { System.err.println(primaryImpl + ".isEmpty() = " + primaryImpl.isEmpty() + " and " + secondaryImpl + ".isEmpty() = " + secondaryImpl.isEmpty()); Assertions.UNREACHABLE(); } return primaryImpl.isEmpty(); }
/** */ @Override public boolean isEmpty() { if (primaryImpl.isEmpty() != secondaryImpl.isEmpty()) { System.err.println(primaryImpl + ".isEmpty() = " + primaryImpl.isEmpty() + " and " + secondaryImpl + ".isEmpty() = " + secondaryImpl.isEmpty()); Assertions.UNREACHABLE(); } return primaryImpl.isEmpty(); }
/** */ @Override public boolean isEmpty() { if (primaryImpl.isEmpty() != secondaryImpl.isEmpty()) { System.err.println(primaryImpl + ".isEmpty() = " + primaryImpl.isEmpty() + " and " + secondaryImpl + ".isEmpty() = " + secondaryImpl.isEmpty()); Assertions.UNREACHABLE(); } return primaryImpl.isEmpty(); }
public boolean addAllInIntersection(T other, IntSet filter) { if (V == null) { copyState(other); if (V != null) { V.intersectWith(filter); if (V.isEmpty()) { V = null; } } return (V != null); } else { if (other.V != null) { boolean result = addAllInIntersection(other.V, filter); return result; } else { return false; } } }
public boolean addAllInIntersection(T other, IntSet filter) { if (V == null) { copyState(other); if (V != null) { V.intersectWith(filter); if (V.isEmpty()) { V = null; } } return (V != null); } else { if (other.V != null) { boolean result = addAllInIntersection(other.V, filter); return result; } else { return false; } } }
public boolean addAllInIntersection(T other, IntSet filter) { if (V == null) { copyState(other); if (V != null) { V.intersectWith(filter); if (V.isEmpty()) { V = null; } } return (V != null); } else { if (other.V != null) { boolean result = addAllInIntersection(other.V, filter); return result; } else { return false; } } }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }
Assert.assertTrue(w.isEmpty()); Assert.assertTrue(IntSetUtil.diff(x, x, factory).isEmpty()); Assert.assertTrue(IntSetUtil.diff(z, v, factory).isEmpty()); Assert.assertFalse(a.isSubset(b)); a.remove(1); Assert.assertTrue(a.isEmpty()); i = a.intersection(temp); Assert.assertTrue(a.isEmpty()); Assert.assertTrue(a.isEmpty()); Assert.assertFalse(a.isSubset(b)); a.remove(1); Assert.assertTrue(a.isEmpty()); i = a.intersection(temp); Assert.assertTrue(a.isEmpty()); Assert.assertTrue(temp2.isEmpty()); Assert.assertTrue(temp2.isEmpty());