Skip to content

Commit

Permalink
Issue 480: Fixing line endings. (pravega#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrishnappa authored and fpj committed Feb 9, 2017
1 parent 8ab6861 commit c46ca36
Show file tree
Hide file tree
Showing 5 changed files with 14,060 additions and 14,060 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
*.xml text
*.sh text

# Files that should keep CLRF line endings
# Files that should keep CRLF line endings
*.bat text eol=crlf

76 changes: 38 additions & 38 deletions clients/streaming/src/main/java/com/emc/pravega/state/Update.java
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);

}
Loading

0 comments on commit c46ca36

Please sign in to comment.