comparison src/org/tmatesoft/hg/util/PathRewrite.java @ 93:d55d4eedfc57

Switch to Path instead of String in filenames returned by various status operations
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 27 Jan 2011 21:15:21 +0100
parents 6f1b88693d48
children a3a2e5deb320
comparison
equal deleted inserted replaced
92:bf304cb14247 93:d55d4eedfc57
25 * @author TMate Software Ltd. 25 * @author TMate Software Ltd.
26 */ 26 */
27 public interface PathRewrite { 27 public interface PathRewrite {
28 28
29 public String rewrite(String path); 29 public String rewrite(String path);
30
31 public static class Empty implements PathRewrite {
32 public String rewrite(String path) {
33 return path;
34 }
35 }
30 36
31 public class Composite implements PathRewrite { 37 public class Composite implements PathRewrite {
32 private List<PathRewrite> chain; 38 private List<PathRewrite> chain;
33 39
34 public Composite(PathRewrite... e) { 40 public Composite(PathRewrite... e) {