Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/StoryUpdate.java

Diff revisions: vs.
  @@ -6,44 +6,35 @@
6 6 import org.litesoft.orsup.base.*;
7 7 import org.litesoft.orsup.transact.*;
8 8
9 - public class StoryUpdate extends StoryUpdateGO
10 - {
11 - public StoryUpdate( Transaction pTransaction )
12 - {
9 + public class StoryUpdate extends StoryUpdateGO {
10 + public StoryUpdate( Transaction pTransaction ) {
13 11 super( pTransaction );
14 12 }
15 13
16 - public StoryUpdate( ConstructionControl pConstructionControl )
17 - {
14 + public StoryUpdate( ConstructionControl pConstructionControl ) {
18 15 super( pConstructionControl );
19 16 }
20 17
21 - public StoryUpdate( Transaction pTransaction, User pChanger )
22 - {
18 + public StoryUpdate( Transaction pTransaction, User pChanger ) {
23 19 this( pTransaction );
24 20 setByWhom( pChanger );
25 21 }
26 22
27 23 @Override
28 - public int compareTo( PersistentObject pOther )
29 - {
30 - if ( pOther instanceof StoryUpdate )
31 - {
24 + public int compareTo( PersistentObject pOther ) {
25 + if ( pOther instanceof StoryUpdate ) {
32 26 StoryUpdate them = (StoryUpdate) pOther;
33 27 return CompareSupport.compare( them.getCreated(), this.getCreated() );
34 28 }
35 29 return getPersistentObjectURL().compareTo( pOther.getPersistentObjectURL() );
36 30 }
37 31
38 - public void toString( StringBuilder pSb )
39 - {
40 - if ( pSb.length() != 0 )
41 - {
32 + public void toString( StringBuilder pSb ) {
33 + if ( pSb.length() != 0 ) {
42 34 pSb.append( '\n' );
43 35 }
44 36 pSb.append( TypeConverter.to_SimpleTimestamp( TimeRes.ToMIN, getCreated() ) ).append( " - " ).append( getByWhom() ).append( '\n' );
45 - for ( StoryChange zChange : getChanges() )
46 - {
37 + for ( StoryChange zChange : getChanges() ) {
47 38 pSb.append( " " ).append( zChange ).append( '\n' );
48 39 }
49 40 }