-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stronger types for different string types
- Loading branch information
1 parent
5e2768f
commit 3d88433
Showing
7 changed files
with
78 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
luceedebug/src/main/java/luceedebug/OriginalAndTransformedString.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package luceedebug; | ||
|
||
public class StrongString { | ||
public final String v; | ||
private StrongString(String v) { | ||
this.v = v; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return v.hashCode(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) { | ||
return v.equals(other); | ||
} | ||
|
||
public static class RawIdePath extends StrongString { | ||
public RawIdePath(String v) { | ||
super(v); | ||
} | ||
} | ||
|
||
public static class CanonicalServerAbsPath extends StrongString { | ||
public CanonicalServerAbsPath(String v) { | ||
super(v); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters