Class Addresses
- java.lang.Object
-
- net.andreinc.mockneat.abstraction.MockUnitBase
-
- net.andreinc.mockneat.unit.address.Addresses
-
- All Implemented Interfaces:
MockUnit<java.lang.String>,MockUnitString
public class Addresses extends MockUnitBase implements MockUnitString
-
-
Field Summary
-
Fields inherited from class net.andreinc.mockneat.abstraction.MockUnitBase
mockNeat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Addressesaddresses()MockUnitStringline1()Returns aMockUnitStringthat can be used to generate the first address line with the format:MockUnitStringline2()Returns aMockUnitStringthat can be used to generate the second address line with the format:java.util.function.Supplier<java.lang.String>supplier()Returns aMockUnitStringthat can be used to generate the address lines-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, val, val, valStr, valStr
-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnitString
accumulate, append, array, base64, escapeCsv, escapeEcmaScript, escapeHtml, escapeXml, format, md2, md5, noSpecialChars, prepend, replace, replace, replaceAll, replaceFirst, sha1, sha256, sha384, sha512, split, split, sub, sub, urlEncode, urlEncode
-
-
-
-
Constructor Detail
-
Addresses
public Addresses(MockNeat mockNeat)
-
-
Method Detail
-
addresses
public static Addresses addresses()
-
supplier
public java.util.function.Supplier<java.lang.String> supplier()
Returns a
MockUnitStringthat can be used to generate the address lines
-
line1
public MockUnitString line1()
Returns a
MockUnitStringthat can be used to generate the first address line with the format:number noun suffix (Ave, Avenue, Street, etc.)
- Returns:
- A new
MockUnitString.
-
line2
public MockUnitString line2()
Returns a
MockUnitStringthat can be used to generate the second address line with the format:prefix (Line, Suite, Apartment) number
- Returns:
- A new
MockUnitString.
-
-