Package io.kjson.resource
Object Resource.Companion
-
- All Implemented Interfaces:
public class Resource.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringcurrentPathpublic final static Resource.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final URLclassPathURL(String name)Get a URL for a resource in the classpath (will be either a file:or ajar:URL).final BooleansameAs(URL $self, URL other)Compare URLs (can't use equals()because that may involve network operations).final IntegerrelevantHashCode(URL $self)Hash code of "relevant" fields of URL (can't use hashCode()because that may involve network operations).final BooleanhasProtocol(String $self)Check whether a URL string has a "protocol" field (suitable for use as an absolute URL). final StringgetCurrentPath()-
-
Method Detail
-
classPathURL
final URL classPathURL(String name)
Get a URL for a resource in the classpath (will be either a
file:or ajar:URL).
-
sameAs
final Boolean sameAs(URL $self, URL other)
Compare URLs (can't use
equals()because that may involve network operations).
-
relevantHashCode
final Integer relevantHashCode(URL $self)
Hash code of "relevant" fields of URL (can't use
hashCode()because that may involve network operations).
-
hasProtocol
final Boolean hasProtocol(String $self)
Check whether a URL string has a "protocol" field (suitable for use as an absolute URL).
-
getCurrentPath
final String getCurrentPath()
-
-
-
-