Class Property

  • All Implemented Interfaces:
    IProperty

    public class Property
    extends java.lang.Object
    implements IProperty
    Default implementation of the IProperty interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATE_PATTERN  
    • Constructor Summary

      Constructors 
      Constructor Description
      Property​(java.lang.String name, java.lang.String sequence, java.lang.String value, long time, java.util.Date modified, java.lang.String modifiedBy)
      Instantiates a new property.
      Property​(java.util.Map<java.lang.String,​java.lang.Object> map)
      Constructs a Property from the passed-in map; this map must have come from a Perforce IServer method call or it may fail.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getModified()
      Gets the modified date.
      java.lang.String getModifiedBy()
      Gets the modified by user.
      java.lang.String getName()
      Gets the name of the property.
      java.lang.String getSequence()
      Gets the sequence number of the property.
      long getTime()
      Gets the time in milliseconds.
      java.lang.String getValue()
      Gets the value of the property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Property

        public Property​(java.lang.String name,
                        java.lang.String sequence,
                        java.lang.String value,
                        long time,
                        java.util.Date modified,
                        java.lang.String modifiedBy)
        Instantiates a new property.
        Parameters:
        name - the property name
        sequence - the sequence number
        value - the property value
        time - the time in milliseconds
        modified - the modified date
        modifiedBy - the modified by user
      • Property

        public Property​(java.util.Map<java.lang.String,​java.lang.Object> map)
        Constructs a Property from the passed-in map; this map must have come from a Perforce IServer method call or it may fail. If map is null, equivalent to calling the default constructor.
        Parameters:
        map - the map