Examples of LongList


Examples of org.eclipse.jgit.util.LongList

          JGitText.get().unknownObjectType, Integer.valueOf(typeCode)));
    }
  }

  private boolean isCorrupt(long offset) {
    LongList list = corruptObjects;
    if (list == null)
      return false;
    synchronized (list) {
      return list.contains(offset);
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.util.LongList

      return list.contains(offset);
    }
  }

  private void setCorrupt(long offset) {
    LongList list = corruptObjects;
    if (list == null) {
      synchronized (initLock) {
        list = corruptObjects;
        if (list == null) {
          list = new LongList();
          corruptObjects = list;
        }
      }
    }
    synchronized (list) {
      list.add(offset);
    }
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.LongList

            return new IntegerList((int[]) array);
        else if (componentType == Integer.class)
            return new IntegerList((Integer[]) array);

        else if (componentType == long.class)
            return new LongList((long[]) array);
        else if (componentType == Long.class)
            return new LongList((Long[]) array);

        else if (componentType == float.class)
            return new FloatList((float[]) array);
        else if (componentType == Float.class)
            return new FloatList((Float[]) array);
View Full Code Here

Examples of org.jfree.layouting.util.LongList

  }

  public TableRow(final Border border)
  {
    this.border = border;
    this.preferredSizes = new LongList(10);
    this.validatedLeadingSize = 0;
    this.validatedTrailingSize = new LongList(10);
  }
View Full Code Here

Examples of org.jfree.layouting.util.LongList

  }

  private void updateBreaks()
  {
    final int pageCnt = pageGrid.getColumnCount();
    final LongList pageLongList = new LongList(pageCnt);
    long pos = 0;
    for (int i = 0; i < pageCnt; i++)
    {
      if (pos < startOfLine)
      {
        // skip ..
        continue;
      }
      final PhysicalPageBox page = pageGrid.getPage(0, i);
      pos += page.getImageableWidth();
      if (pos >= endOfLine)
      {
        break;
      }
      pageLongList.add(pos);
    }
    pageLongList.add(endOfLine);

    this.pagebreaks = pageLongList.toArray();
  }
View Full Code Here

Examples of org.jfree.layouting.util.LongList

    }

    this.definedWidth = definedWidth;
    this.border = border;
    this.autoGenerated = autoGenerated;
    this.minimumChunkSizes = new LongList(10);
    this.maximumBoxWidths = new LongList(10);
    this.preferredSizes = new LongList(10);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.LongList

  private void updateBreaks()
  {
    final long[] horizontalBreaks = pageGrid.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    for (int i = 0; i < breakCount; i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= startOfLine)
      {
        // skip ..
        continue;
      }
      if (pos >= endOfLine)
      {
        break;
      }
      if (overflowX == false || (i < (breakCount - 1)))
      {
        pageLongList.add(pos);
      }
    }
    pageLongList.add(endOfLine);

    this.pagebreaks = pageLongList.toArray(this.pagebreaks);
    this.pagebreakCount = pageLongList.size();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.LongList

  protected void updateBreaksForLastLineAlignment()
  {
    final long[] horizontalBreaks = getPageGrid().getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    final long endOfLine = getEndOfLine();
    final long startOfLine = getStartOfLine();
    for (int i = 0; i < breakCount; i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= startOfLine)
      {
        // skip ..
        continue;
      }
      if (pos >= endOfLine)
      {
        break;
      }
      pageLongList.add(pos);
    }
    //pageLongList.add(endOfLine);
    pageLongList.add(Long.MAX_VALUE);

    final long[] pagebreaks = getPageBreaks();
    updatePageBreaks(pageLongList.toArray(pagebreaks), pageLongList.size());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.LongList

  private void updateBreaks()
  {
    final long[] horizontalBreaks = breaks.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    for (int i = 0; i < (breakCount - 1); i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= start)
      {
        // skip ..
        continue;
      }
      if (overflowX == false && pos >= end)
      {
        break;
      }

      pageLongList.add(pos);
    }
    pageLongList.add(end);

    this.pagebreaks = pageLongList.toArray(this.pagebreaks);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.LongList

  {
    final long[] horizontalBreaks = pageGrid.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    if (pageLongList == null)
    {
      pageLongList = new LongList(breakCount);
    }
    else
    {
      pageLongList.clear();
    }
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.