diff options
author | Tor Norbye <tnorbye@google.com> | 2014-09-04 13:24:04 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-09-04 13:24:04 -0700 |
commit | c3d3a90f6b4ead083d63e28e6b9fcea93d675678 (patch) | |
tree | fc0dcd722b6d445468dbe7dad13b4c11781b1cbe /platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java | |
parent | 1aa2e09bdbd413eacb677e9fa4b50630530d0656 (diff) | |
download | idea-c3d3a90f6b4ead083d63e28e6b9fcea93d675678.tar.gz |
Snapshot idea/138.1980 from git://git.jetbrains.org/idea/community.git
Change-Id: Ib567c9c152d770212a7a3db20fbf591c210920bd
Diffstat (limited to 'platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java')
-rw-r--r-- | platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java b/platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java index 81ff874979bd..e205009a4c0d 100644 --- a/platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java +++ b/platform/dvcs-api/src/com/intellij/dvcs/push/PushSpec.java @@ -16,28 +16,32 @@ package com.intellij.dvcs.push; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; /** - * Specified a push from-to settings for one repository + * For a single repository, specifies what is pushed and where. */ -public class PushSpec { +public class PushSpec<S extends PushSource, T extends PushTarget> { - @NotNull private PushSource mySource; - @Nullable private PushTarget myTarget; + @NotNull private S mySource; + @NotNull private T myTarget; - public PushSpec(@NotNull PushSource source, @Nullable PushTarget target) { + public PushSpec(@NotNull S source, @NotNull T target) { mySource = source; myTarget = target; } @NotNull - public PushSource getSource() { + public S getSource() { return mySource; } - @Nullable - public PushTarget getTarget() { + @NotNull + public T getTarget() { return myTarget; } + + @Override + public String toString() { + return mySource + "->" + myTarget; + } } |