Examples of lastIndexOf()


Examples of it.unimi.dsi.lang.MutableString.lastIndexOf()

      intervalIterator = new IntervalIterator[ n ];
    }

    public String toString() {
       MutableString res = new MutableString();
       res.append( this.getClass().getName() ).append( "(" ).delete( 0, res.lastIndexOf( '.' ) + 1 );
       for ( int i = 0; i < intervalIterator.length; i++ ) res.append( i > 0 ? "," : "" ).append( intervalIterator[ i ] );
       return res.append( ")" ).toString();
    }
  }
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.lastIndexOf()

      curr = new int[ n ];
    }

    public String toString() {
       MutableString res = new MutableString();
       res.append( this.getClass().getName() ).append( "(" ).delete( 0, res.lastIndexOf( '.' ) + 1 );
       for ( int i = 0; i < position.length; i++ ) res.append( i > 0 ? "," : "" ).append( IntArrayList.wrap( position[ i ], count[ i ] ) );
       return res.append( ")" ).toString();
    }
  }
View Full Code Here

Examples of java.io.File.lastIndexOf()

        AttachmentImpl att = new AttachmentImpl(id, handler);
        if (!StringUtils.isEmpty(handler.getName())) {
            //set Content-Disposition attachment header if filename isn't null
            String file = handler.getName();
            if (StringUtils.isFileExist(file)) {
                file = file.substring(file.lastIndexOf(File.separator) + 1);
            }
            att.setHeader("Content-Disposition", "attachment;name=\"" + file + "\"");
        }
        att.setXOP(isXop);
        return att;
View Full Code Here

Examples of java.lang.String.lastIndexOf()

  {
        // Get the current time and convert to a String
        long millis = System.currentTimeMillis();
        Timestamp ts = new Timestamp(millis);
        String s = ts.toString();
        s = s.substring(0, s.lastIndexOf("."));
        return s;
  }

  // no instances permitted.
  private CurrentTime() {}
View Full Code Here

Examples of java.math.BigDecimal.lastIndexOf()

                      
                       String valorAtribLivre = demAtributoDema.getInformacao();
                    
                       //Modifica as ordens de dia e m�s na data, para ficar no formato MM/DD/YYYY
                       valorAtribLivre =
                         valorAtribLivre.substring(3, valorAtribLivre.lastIndexOf("/")+1) +
                         valorAtribLivre.substring(0, valorAtribLivre.indexOf("/")+1) +
                         valorAtribLivre.substring(valorAtribLivre.lastIndexOf("/")+1);
                                    
                       Date dataAtribLivre = new Date(valorAtribLivre);
                       //Remove da lista se a data estiver estiver fora do intervalo especificado no filtro                       
View Full Code Here

Examples of java.net.URL.lastIndexOf()

      resp.sendError(HttpServletResponse.SC_NOT_FOUND);
      return;
    }

    String url = ident.getURI();
    url = url.substring(0, url.lastIndexOf("/")) + "/";
    try {
      if (!perAPI.doesUserHavePermission(ident,PermissionAPI.PERMISSION_READ, user, true)) {
        resp.sendError(HttpServletResponse.SC_FORBIDDEN);
      }
    } catch (DotDataException e1) {
View Full Code Here

Examples of java.util.ArrayList.lastIndexOf()

        list.add("Bye");
        assert list.contains("Bye");
        assert 0 == list.indexOf("Bye");

        list.add(1, "Groovy");
        assert 1 == list.lastIndexOf("Groovy");
    }
}
View Full Code Here

Examples of java.util.LinkedList.lastIndexOf()

            // for getting the sublist of vertex labels of cycle paricipants
            //
            // So in our case we are seraching for [b, a, c, d, b]
            final String label = ( String ) cycleStack.getFirst();

            final int pos = cycleStack.lastIndexOf( label );

            final List cycle = cycleStack.subList( 0, pos + 1 );

            Collections.reverse( cycle );
View Full Code Here

Examples of java.util.LinkedList.lastIndexOf()

            // for getting the sublist of vertex labels of cycle paricipants
            //
            // So in our case we are seraching for [b, a, c, d, b]
            final String label = ( String ) cycleStack.getFirst();

            final int pos = cycleStack.lastIndexOf( label );

            final List cycle = cycleStack.subList( 0, pos + 1 );

            Collections.reverse( cycle );
View Full Code Here

Examples of java.util.LinkedList.lastIndexOf()

            // for getting the sublist of vertex labels of cycle paricipants
            //
            // So in our case we are seraching for [b, a, c, d, b]
            final String label = ( String ) cycleStack.getFirst();

            final int pos = cycleStack.lastIndexOf( label );

            final List cycle = cycleStack.subList( 0, pos + 1 );

            Collections.reverse( cycle );
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.