Mercurial > jhg
comparison src/org/tmatesoft/hg/util/Pair.java @ 388:b015f3918120
Work on FIXME: correct HgDataFile#workingCopy with tests; BasicSessionContext with property override; platform-specific options to internals
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 15 Feb 2012 22:57:56 +0100 |
| parents | fd845a53f53d |
| children | 5311e041d2dd |
comparison
equal
deleted
inserted
replaced
| 387:cdea37239b01 | 388:b015f3918120 |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 TMate Software Ltd | 2 * Copyright (c) 2011-2012 TMate Software Ltd |
| 3 * | 3 * |
| 4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
| 5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
| 6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
| 7 * | 7 * |
| 44 return value1 != null; | 44 return value1 != null; |
| 45 } | 45 } |
| 46 public boolean hasSecond() { | 46 public boolean hasSecond() { |
| 47 return value2 != null; | 47 return value2 != null; |
| 48 } | 48 } |
| 49 | |
| 50 @Override | |
| 51 public String toString() { | |
| 52 StringBuilder sb = new StringBuilder(); | |
| 53 sb.append('<'); | |
| 54 sb.append(first()); | |
| 55 sb.append(':'); | |
| 56 sb.append(second()); | |
| 57 sb.append('>'); | |
| 58 return sb.toString(); | |
| 59 } | |
| 49 } | 60 } |
| 50 | 61 |
