forked from pravega/pravega
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 480: Fixing line endings. (pravega#481)
- Loading branch information
1 parent
8ab6861
commit c46ca36
Showing
5 changed files
with
14,060 additions
and
14,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 38 additions & 38 deletions
76
clients/streaming/src/main/java/com/emc/pravega/state/Update.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.emc.pravega.state; | ||
|
||
/** | ||
* An update to a StateT object coordinated via a {@link StateSynchronizer}. | ||
* | ||
* @param <StateT> the type of the object being updated | ||
*/ | ||
public interface Update<StateT extends Revisioned> { | ||
|
||
/** | ||
* Return an object of type StateT that is the same as oldState with this update applied to it. | ||
* Invoking {@link Revisioned#getRevision()} on the result should return newRevision. | ||
* | ||
* @param oldState the state to which should be used as the basis for the new state. | ||
* @param newRevision the revision for the new state. | ||
* @return A state that represents a state with this update applied to it. (If StateT is mutable | ||
* and the update is done in-place this is the same object as oldState) | ||
*/ | ||
StateT applyTo(StateT oldState, Revision newRevision); | ||
|
||
} | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.emc.pravega.state; | ||
|
||
/** | ||
* An update to a StateT object coordinated via a {@link StateSynchronizer}. | ||
* | ||
* @param <StateT> the type of the object being updated | ||
*/ | ||
public interface Update<StateT extends Revisioned> { | ||
|
||
/** | ||
* Return an object of type StateT that is the same as oldState with this update applied to it. | ||
* Invoking {@link Revisioned#getRevision()} on the result should return newRevision. | ||
* | ||
* @param oldState the state to which should be used as the basis for the new state. | ||
* @param newRevision the revision for the new state. | ||
* @return A state that represents a state with this update applied to it. (If StateT is mutable | ||
* and the update is done in-place this is the same object as oldState) | ||
*/ | ||
StateT applyTo(StateT oldState, Revision newRevision); | ||
|
||
} |
Oops, something went wrong.