Examples of tail()


Examples of com.ebuddy.cassandra.Path.tail()

        for (Map.Entry<String,Object> entry : columnsMap.entrySet()) {
            Path path = DefaultPath.fromEncodedPathString(entry.getKey());
            if (!path.startsWith(inputPath)) {
                throw new IllegalStateException("unexpected path found in database:" + path);
            }
            path = path.tail(inputPath.size());
            pathMap.put(path, entry.getValue());
        }
        return pathMap;
    }
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleTimeSeries.tail()

    if (start.isAfter(timeSeries.getLatestTime()) || end.isBefore(timeSeries.getEarliestTime())) {
      return new SimpleHistoricalTimeSeries(hts.getUniqueId(), ImmutableLocalDateDoubleTimeSeries.EMPTY_SERIES);
    }
    timeSeries = timeSeries.subSeries(start, true, end, true);
    if (((maxPoints != null) && (Math.abs(maxPoints) < timeSeries.size()))) {
      timeSeries = maxPoints >= 0 ? timeSeries.head(maxPoints) : timeSeries.tail(-maxPoints);
    }
    return new SimpleHistoricalTimeSeries(hts.getUniqueId(), timeSeries);
  }

  //-------------------------------------------------------------------------
View Full Code Here

Examples of erjang.ECons.tail()

  }

  private static void collectList(EObject list, ECons iol, OutputStream barr) throws IOException {
    EObject tail;
    ECons cons;
    for (tail=iol; (cons = tail.testNonEmptyList()) != null; tail = cons.tail()) {
      EObject hd = cons.head();

      ESmall sm;
      EBinary bi;
      ECons co;
View Full Code Here

Examples of erjang.ECons.tail()

  @BIF
  static public EObject tl(EObject cell) {
    ECons cons;
    if ((cons = cell.testNonEmptyList()) != null) {
      return cons.tail();
    }
    throw ERT.badarg(cell);
  }

  @BIF(type = Type.GUARD, name = "hd")
View Full Code Here

Examples of erjang.ECons.tail()

  @BIF(type = Type.GUARD, name = "tl")
  static public EObject tl$p(EObject cell) {
    ECons cons;
    if ((cons = cell.testNonEmptyList()) != null) {
      return cons.tail();
    }
    return null;
  }

  @BIF
View Full Code Here

Examples of erjang.ECons.tail()

    ECons settings = portSetting.testCons();
    if (settings == null)
      throw ERT.badarg();

    for (; settings != null && !settings.isNil(); settings = settings
        .tail().testCons()) {

      EObject val = settings.head();
      ETuple tup;
      if ((tup = val.testTuple()) != null) {
View Full Code Here

Examples of erjang.ESeq.tail()

    case 5:
      self.arg4 = a.head(); a = a.tail();
    case 4:
      self.arg3 = a.head(); a = a.tail();
    case 3:
      self.arg2 = a.head(); a = a.tail();
    case 2:
      self.arg1 = a.head(); a = a.tail();
    case 1:
      self.arg0 = a.head(); // a = a.tail();
    case 0:
View Full Code Here

Examples of erjang.ESeq.tail()

    case 4:
      self.arg3 = a.head(); a = a.tail();
    case 3:
      self.arg2 = a.head(); a = a.tail();
    case 2:
      self.arg1 = a.head(); a = a.tail();
    case 1:
      self.arg0 = a.head(); // a = a.tail();
    case 0:
    }   
   
View Full Code Here

Examples of erjang.ESeq.tail()

        // if it is a sequence, make sure elements are integers
        while (!spec.isNil()) {
          EObject val = spec.head();
          if (val.testSmall() == null && val.testString() == null && val.testAtom() == null)
            return false;
          spec = spec.tail();
        }
       
        // ok
      } else
        return false;
View Full Code Here

Examples of erjang.ESeq.tail()

   
    boolean link = false;
    boolean monitor = false;
    EAtom priority = null;
   
    for (; !o.isNil(); o = o.tail() ) {
      EObject val = o.head();
     
      ETuple2 t2;
      if (val == am_link) {
        link = true;
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.