Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Madan Jampani
2014-11-12 01:57:07 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7aad23394e641f9176c0288fd5fcc64e34f68d8a
7aad2339
1 parent
bd1f0265
Replace Collections.unmodifiableList with guava ImmutableList
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
core/api/src/main/java/org/onlab/onos/store/service/BatchReadRequest.java
core/api/src/main/java/org/onlab/onos/store/service/BatchReadResult.java
core/api/src/main/java/org/onlab/onos/store/service/BatchWriteRequest.java
core/api/src/main/java/org/onlab/onos/store/service/BatchWriteResult.java
core/api/src/main/java/org/onlab/onos/store/service/BatchReadRequest.java
View file @
7aad233
package
org
.
onlab
.
onos
.
store
.
service
;
import
java.util.Collections
;
import
java.util.List
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.Lists
;
/**
...
...
@@ -22,7 +22,7 @@ public final class BatchReadRequest {
}
private
BatchReadRequest
(
List
<
ReadRequest
>
readRequests
)
{
this
.
readRequests
=
Collections
.
unmodifiableList
(
readRequests
);
this
.
readRequests
=
ImmutableList
.
copyOf
(
readRequests
);
}
/**
...
...
core/api/src/main/java/org/onlab/onos/store/service/BatchReadResult.java
View file @
7aad233
package
org
.
onlab
.
onos
.
store
.
service
;
import
java.util.Collections
;
import
java.util.List
;
import
com.google.common.collect.ImmutableList
;
/**
* Result of a batch read operation.
*/
...
...
@@ -11,7 +12,7 @@ public class BatchReadResult {
private
final
List
<
ReadResult
>
readResults
;
public
BatchReadResult
(
List
<
ReadResult
>
readResults
)
{
this
.
readResults
=
Collections
.
unmodifiableList
(
readResults
);
this
.
readResults
=
ImmutableList
.
copyOf
(
readResults
);
}
/**
...
...
core/api/src/main/java/org/onlab/onos/store/service/BatchWriteRequest.java
View file @
7aad233
package
org
.
onlab
.
onos
.
store
.
service
;
import
java.util.Collections
;
import
java.util.List
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.Lists
;
/**
...
...
@@ -22,7 +22,7 @@ public final class BatchWriteRequest {
}
private
BatchWriteRequest
(
List
<
WriteRequest
>
writeRequests
)
{
this
.
writeRequests
=
Collections
.
unmodifiableList
(
writeRequests
);
this
.
writeRequests
=
ImmutableList
.
copyOf
(
writeRequests
);
}
/**
...
...
core/api/src/main/java/org/onlab/onos/store/service/BatchWriteResult.java
View file @
7aad233
package
org
.
onlab
.
onos
.
store
.
service
;
import
java.util.Collections
;
import
java.util.List
;
import
com.google.common.collect.ImmutableList
;
/**
* Result of a batch write operation.
*/
...
...
@@ -11,7 +12,7 @@ public class BatchWriteResult {
private
final
List
<
WriteResult
>
writeResults
;
public
BatchWriteResult
(
List
<
WriteResult
>
writeResults
)
{
this
.
writeResults
=
Collections
.
unmodifiableList
(
writeResults
);
this
.
writeResults
=
ImmutableList
.
copyOf
(
writeResults
);
}
/**
...
...
Please
register
or
login
to post a comment