Tabnine Logo
Path.isAbsolute
Code IndexAdd Tabnine to your IDE (free)

How to use
isAbsolute
method
in
juzu.impl.common.Path

Best Java code snippets using juzu.impl.common.Path.isAbsolute (Showing top 8 results out of 315)

origin: org.juzu/juzu-core

public final boolean isRelative() {
 return !isAbsolute();
}
origin: juzu/juzu

public final boolean isRelative() {
 return !isAbsolute();
}
origin: juzu/juzu

@Override
public boolean equals(Object obj) {
 if (obj == this) {
  return true;
 } else if (obj != null && obj.getClass() == getClass()) {
  Path that = (Path)obj;
  return isAbsolute() == that.isAbsolute() && name.equals(that.name) && Tools.safeEquals(ext, that.ext);
 } else {
  return false;
 }
}
origin: org.juzu/juzu-core

@Override
public boolean equals(Object obj) {
 if (obj == this) {
  return true;
 } else if (obj != null && obj.getClass() == getClass()) {
  Path that = (Path)obj;
  return isAbsolute() == that.isAbsolute() && name.equals(that.name) && Tools.safeEquals(ext, that.ext);
 } else {
  return false;
 }
}
origin: juzu/juzu

public String getCanonical() {
 if (canonical == null) {
  StringBuilder sb = new StringBuilder();
  if (isAbsolute()) {
   sb.append('/');
  }
  for (int i = 0;i < name.size();i++) {
   if (i > 0) {
    sb.append('/');
   }
   sb.append(name.get(i));
  }
  String ext = getExt();
  if (ext != null) {
   sb.append('.').append(ext);
  }
  canonical = sb.toString();
 }
 return canonical;
}
origin: org.juzu/juzu-core

public String getCanonical() {
 if (canonical == null) {
  StringBuilder sb = new StringBuilder();
  if (isAbsolute()) {
   sb.append('/');
  }
  for (int i = 0;i < name.size();i++) {
   if (i > 0) {
    sb.append('/');
   }
   sb.append(name.get(i));
  }
  String ext = getExt();
  if (ext != null) {
   sb.append('.').append(ext);
  }
  canonical = sb.toString();
 }
 return canonical;
}
origin: juzu/juzu

private void assertPath(boolean absolute, String[] names, String name, String extension, Path test) {
 Assert.assertEquals(absolute, test.isAbsolute());
 Iterable<String> qn = test.getDirs();
 Assert.assertNotNull(qn);
 Assert.assertEquals(Arrays.asList(names), Tools.list(qn));
 Assert.assertEquals(name, test.getRawName());
 Assert.assertEquals(extension, test.getExt());
}
origin: org.juzu/juzu-core

private void assertPath(boolean absolute, String[] names, String name, String extension, Path test) {
 Assert.assertEquals(absolute, test.isAbsolute());
 Iterable<String> qn = test.getDirs();
 Assert.assertNotNull(qn);
 Assert.assertEquals(Arrays.asList(names), Tools.list(qn));
 Assert.assertEquals(name, test.getRawName());
 Assert.assertEquals(extension, test.getExt());
}
juzu.impl.commonPathisAbsolute

Popular methods of Path

  • parse
  • absolute
  • as
  • getCanonical
  • getDirs
    Returns the path directories as a name.
  • getExt
    Returns the path extension.
  • getRawName
    Returns the path raw name.
  • relative
  • append
  • create
  • getName
    Returns the path as a name.
  • getSimpleName
    Returns the path simple name: the raw name followed by the extension.
  • getName,
  • getSimpleName,
  • isRelative

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Reference (javax.naming)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now