litesoft
@ 939
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
package org.litesoft.core.simpletypes; import org.litesoft.commonfoundation.typeutils.*; import org.litesoft.core.simpletypes.nonpublic.*; public class TextFile extends EqualSupport implements SimpleType { private static final long serialVersionUID = 1L; private /* final */ String mFileName; private /* final */ TextLines mLines; @SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */ protected TextFile() { } public TextFile( String pFileName, String... pLines ) { mFileName = Strings.assertNotNullNotEmpty( "FileName", pFileName ); mLines = new TextLines( Objects.assertNotNull( "Lines", pLines ) ); } public String getFileName() { return mFileName; } public String[] getLines() { return mLines.toStringArray(); } public boolean equals( Object o ) { return (this == o) || // ((o instanceof TextFile) && equals( (TextFile) o )); } public boolean equals( TextFile them ) { return (this == them) || // ((them != null) // && equal( this.mFileName, them.mFileName ) // && equal( this.mLines, them.mLines ) // ); } public int hashCode() { return mFileName.hashCode(); } public String toString() { return mFileName + ": " + mLines; } } |
Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/TextFile.java
Revision | Author | Commited | Message |
---|---|---|---|
939 Diff | GeorgeS | Mon 02 Jun, 2014 21:30:31 +0000 | Extracting commonfoundation |
851 Diff | GeorgeS | Mon 08 Oct, 2012 00:05:32 +0000 | Breaking the code as Temporal changes are implemented... |
849 Diff | GeorgeS | Tue 11 Sep, 2012 17:11:59 +0000 | Clean up serialization |
821 Diff | GeorgeS | Sun 19 Aug, 2012 00:08:41 +0000 | |
804 Diff | GeorgeS | Wed 15 Aug, 2012 12:48:51 +0000 | |
791 Diff | GeorgeS | Sun 12 Aug, 2012 15:22:58 +0000 | ! |
789 | GeorgeS | Sat 11 Aug, 2012 17:47:31 +0000 |