Examples of dec()


Examples of org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage.dec()

    public void onFinally(Object pojo, Method method) {
        if (m_usage != null) {
            Usage usage = (Usage) m_usage.get();
            usage.decComponentStack();
            if (usage.m_stack > 0) {
                if (usage.dec()) {
                    // Exit the method flow => Release all objects
                    usage.clear();
                    m_usage.set(usage); // Set the Thread local as value has been modified
                }
            }
View Full Code Here

Examples of org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage.dec()

    public void onFinally(Object pojo, Member method) {
        if (m_usage != null) {
            Usage usage = m_usage.get();
            usage.decComponentStack();
            if (usage.m_stack > 0) {
                if (usage.dec()) {
                    // Exit the method flow => Release all objects
                    usage.clear();
                    // Also remove the thread local object.
                    m_usage.remove();
                }
View Full Code Here

Examples of org.apache.jena.atlas.lib.RefLong.dec()

    {
        RefLong ref = new RefLong() ;
        assertEquals(0, ref.value()) ;
        ref.inc() ;
        assertEquals(1, ref.value()) ;
        ref.dec() ;
        assertEquals(0, ref.value()) ;
    }
   
    @Test public void ref_03()
    {
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

        return;
      }

      final ComparableIntPointerIterator it0 = checkConcurrentModification(0);
      if (!this.wentForward) {
        it0.dec();
        // this also takes care of invalid iterators
        heapify_down(it0, -1);
      } else {
        // We need to decrement everything.
        int lvi = this.indexes.length - 1;
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

            it.moveToLast();
          }
          // Decrement the iterator while it is valid and pointing
          // at something greater than the current element.
          while (it.isValid() && is_before(it, it0, -1)) {
            it.dec();
          }

          // find placement
          if (it.isValid()) {
            heapify_up(it, i, -1);
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

        return;
      }

      final ComparableIntPointerIterator it0 = checkConcurrentModification(0);
      if (!this.wentForward) {
        it0.dec();
        // this also takes care of invalid iterators
        heapify_down(it0, -1);
      } else {
        // We need to decrement everything.
        int lvi = this.indexes.length - 1;
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

            it.moveToLast();
          }
          // Decrement the iterator while it is valid and pointing
          // at something greater than the current element.
          while (it.isValid() && is_before(it, it0, -1)) {
            it.dec();
          }

          // find placement
          if (it.isValid()) {
            heapify_up(it, i, -1);
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

        return;
      }

      final ComparableIntPointerIterator it0 = checkConcurrentModification(0);
      if (!this.wentForward) {
        it0.dec();
        // this also takes care of invalid iterators
        heapify_down(it0, -1);
      } else {
        // We need to decrement everything.
        int lvi = this.indexes.length - 1;
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

            it.moveToLast();
          }
          // Decrement the iterator while it is valid and pointing
          // at something greater than the current element.
          while (it.isValid() && is_before(it, it0, -1)) {
            it.dec();
          }

          // find placement
          if (it.isValid()) {
            heapify_up(it, i, -1);
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.dec()

        return;
      }

      final ComparableIntPointerIterator it0 = checkConcurrentModification(0);
      if (!this.wentForward) {
        it0.dec();
        // this also takes care of invalid iterators
        heapify_down(it0, -1);
      } else {
        // We need to decrement everything.
        int lvi = this.indexes.length - 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.