Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cleaned up generics #603

Merged
merged 1 commit into from

2 participants

@thrykol
Collaborator

Updated setters to include the appropriate type variables in the return type.

@zznate zznate merged commit 1fe97f3 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2013
  1. Cleaned up generics

    Shane Perry authored
This page is out of date. Refresh to see the latest.
View
12 core/src/main/java/me/prettyprint/cassandra/service/ClearCounterRow.java
@@ -1,7 +1,3 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
package me.prettyprint.cassandra.service;
import me.prettyprint.hector.api.Keyspace;
@@ -39,7 +35,7 @@ public ClearCounterRow(Keyspace keyspace, Serializer<K> keySerializer, Serialize
* @param cf Column family name
* @return <code>this</code>
*/
- public ClearCounterRow setColumnFamily(String cf) {
+ public ClearCounterRow<K, N> setColumnFamily(String cf) {
this.cf = cf;
return this;
}
@@ -50,7 +46,7 @@ public ClearCounterRow setColumnFamily(String cf) {
* @param rowKey Row key
* @return <code>this</code>
*/
- public ClearCounterRow setRowKey(K rowKey) {
+ public ClearCounterRow<K, N> setRowKey(K rowKey) {
this.rowKey = rowKey;
return this;
}
@@ -61,7 +57,7 @@ public ClearCounterRow setRowKey(K rowKey) {
* @param interval Mutation interval
* @return <code>this</code>
*/
- public ClearCounterRow setMutateInterval(int interval) {
+ public ClearCounterRow<K, N> setMutateInterval(int interval) {
this.mutateInterval = interval;
return this;
}
@@ -72,7 +68,7 @@ public ClearCounterRow setMutateInterval(int interval) {
* @param count The number of columns to retrieve per slice
* @return &lt;this&gt;
*/
- public ClearCounterRow setCount(int count) {
+ public ClearCounterRow<K, N> setCount(int count) {
this.count = count;
return this;
}
Something went wrong with that request. Please try again.