Class FilenameSplitExtension
Object
FilenameSplitExtension
A file-name with the base (without extension) split from the extension.
 
A period between the base and the extension exists in the filename, but this belongs to neither component.
- Author:
 - Owen Feehan
 
- 
Constructor Summary
ConstructorsConstructorDescriptionFilenameSplitExtension(String pathWithoutExtension, Optional<String> extension) Creates from a path without an extension. - 
Method Summary
Modifier and TypeMethodDescriptioncombineWithSuffix(String suffix) Inserts a suffix after the base-name, but before the extension, immutably.booleanThe part of the filename without an extension.The extension of the filename.inthashCode()toString() 
- 
Constructor Details
- 
FilenameSplitExtension
Creates from a path without an extension.- Parameters:
 pathWithoutExtension- a path without an extension (any directory components are ignored)extension- the extension.
 
 - 
 - 
Method Details
- 
combineWithSuffix
Inserts a suffix after the base-name, but before the extension, immutably.- Parameters:
 suffix- the suffix to insert- Returns:
 - the full filename with an extension inserted after the basename, but before the extension
 
 - 
getBaseName
The part of the filename without an extension. - 
getExtension
The extension of the filename. - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -