Package ch.zhaw.tasklist.source
Class Source
- java.lang.Object
-
- ch.zhaw.tasklist.source.Source
-
- Direct Known Subclasses:
AppointmentSource,NoteSource,ProjectSource,QuicklinkSource,WorkspaceSource
public abstract class Source extends java.lang.ObjectSource file representation, is in most cases a .yml file.
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Check objectjava.lang.StringgetName()Get namejava.nio.file.PathgetPath()Get pathinthashCode()Return hashcodevoidsetName(java.lang.String name)Set namevoidsetPath(java.nio.file.Path path)Set path
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get name- Returns:
-
setName
public void setName(java.lang.String name)
Set name- Parameters:
name-
-
getPath
public java.nio.file.Path getPath()
Get path- Returns:
-
setPath
public void setPath(java.nio.file.Path path)
Set path- Parameters:
path-
-
hashCode
public int hashCode()
Return hashcode- Overrides:
hashCodein classjava.lang.Object- Returns:
-
equals
public boolean equals(java.lang.Object obj)
Check object- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-- Returns:
-
-